Skip to content

Commit 0a2f6b7

Browse files
bmishljharb
authored andcommitted
[Docs] update eslint-doc-generator to v1.0.0
1 parent a522476 commit 0a2f6b7

27 files changed

+135
-129
lines changed

CHANGELOG.md

+2
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,9 @@ This change log adheres to standards from [Keep a CHANGELOG](https://keepachange
2121

2222
### Changed
2323
* [Docs] [`jsx-no-leaked-render`]: Remove mentions of empty strings for React 18 ([#3468][] @karlhorky)
24+
* [Docs] update `eslint-doc-generator` to v1.0.0 ([#3499][] @bmish)
2425

26+
[#3499]: https://github.com/jsx-eslint/eslint-plugin-react/pull/3499
2527
[#3494]: https://github.com/jsx-eslint/eslint-plugin-react/pull/3494
2628
[#3493]: https://github.com/jsx-eslint/eslint-plugin-react/pull/3493
2729
[#3488]: https://github.com/jsx-eslint/eslint-plugin-react/pull/3488

README.md

+107-103
Large diffs are not rendered by default.

docs/rules/display-name.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Disallow missing displayName in a React component definition (`react/display-name`)
22

3-
💼 This rule is enabled in the `recommended` [config](https://github.com/jsx-eslint/eslint-plugin-react/#shareable-configs).
3+
💼 This rule is enabled in the ☑️ `recommended` [config](https://github.com/jsx-eslint/eslint-plugin-react/#shareable-configs).
44

55
<!-- end auto-generated rule header -->
66

docs/rules/jsx-key.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Disallow missing `key` props in iterators/collection literals (`react/jsx-key`)
22

3-
💼 This rule is enabled in the `recommended` [config](https://github.com/jsx-eslint/eslint-plugin-react/#shareable-configs).
3+
💼 This rule is enabled in the ☑️ `recommended` [config](https://github.com/jsx-eslint/eslint-plugin-react/#shareable-configs).
44

55
<!-- end auto-generated rule header -->
66

docs/rules/jsx-no-comment-textnodes.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Disallow comments from being inserted as text nodes (`react/jsx-no-comment-textnodes`)
22

3-
💼 This rule is enabled in the `recommended` [config](https://github.com/jsx-eslint/eslint-plugin-react/#shareable-configs).
3+
💼 This rule is enabled in the ☑️ `recommended` [config](https://github.com/jsx-eslint/eslint-plugin-react/#shareable-configs).
44

55
<!-- end auto-generated rule header -->
66

docs/rules/jsx-no-duplicate-props.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Disallow duplicate properties in JSX (`react/jsx-no-duplicate-props`)
22

3-
💼 This rule is enabled in the `recommended` [config](https://github.com/jsx-eslint/eslint-plugin-react/#shareable-configs).
3+
💼 This rule is enabled in the ☑️ `recommended` [config](https://github.com/jsx-eslint/eslint-plugin-react/#shareable-configs).
44

55
<!-- end auto-generated rule header -->
66

docs/rules/jsx-no-target-blank.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Disallow `target="_blank"` attribute without `rel="noreferrer"` (`react/jsx-no-target-blank`)
22

3-
💼 This rule is enabled in the `recommended` [config](https://github.com/jsx-eslint/eslint-plugin-react/#shareable-configs).
3+
💼 This rule is enabled in the ☑️ `recommended` [config](https://github.com/jsx-eslint/eslint-plugin-react/#shareable-configs).
44

55
🔧 This rule is automatically fixable by the [`--fix` CLI option](https://eslint.org/docs/latest/user-guide/command-line-interface#--fix).
66

docs/rules/jsx-no-undef.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Disallow undeclared variables in JSX (`react/jsx-no-undef`)
22

3-
💼 This rule is enabled in the `recommended` [config](https://github.com/jsx-eslint/eslint-plugin-react/#shareable-configs).
3+
💼 This rule is enabled in the ☑️ `recommended` [config](https://github.com/jsx-eslint/eslint-plugin-react/#shareable-configs).
44

55
<!-- end auto-generated rule header -->
66

docs/rules/jsx-sort-default-props.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Enforce defaultProps declarations alphabetical sorting (`react/jsx-sort-default-props`)
22

3-
❌ This rule is deprecated. It was replaced by [`sort-default-props`](sort-default-props.md).
3+
❌ This rule is deprecated. It was replaced by [`react/sort-default-props`](../../docs/rules/sort-default-props.md).
44

55
<!-- end auto-generated rule header -->
66

docs/rules/jsx-space-before-closing.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Enforce spacing before closing bracket in JSX (`react/jsx-space-before-closing`)
22

3-
❌ This rule is deprecated. It was replaced by [`jsx-tag-spacing`](jsx-tag-spacing.md).
3+
❌ This rule is deprecated. It was replaced by [`react/jsx-tag-spacing`](../../docs/rules/jsx-tag-spacing.md).
44

55
🔧 This rule is automatically fixable by the [`--fix` CLI option](https://eslint.org/docs/latest/user-guide/command-line-interface#--fix).
66

docs/rules/jsx-uses-react.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Disallow React to be incorrectly marked as unused (`react/jsx-uses-react`)
22

3-
💼 This rule is enabled in the `recommended` [config](https://github.com/jsx-eslint/eslint-plugin-react/#shareable-configs). This rule is _disabled_ in the `jsx-runtime` [config](https://github.com/jsx-eslint/eslint-plugin-react/#shareable-configs).
3+
💼🚫 This rule is enabled in the ☑️ `recommended` [config](https://github.com/jsx-eslint/eslint-plugin-react/#shareable-configs). This rule is _disabled_ in the `jsx-runtime` [config](https://github.com/jsx-eslint/eslint-plugin-react/#shareable-configs).
44

55
<!-- end auto-generated rule header -->
66

docs/rules/jsx-uses-vars.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Disallow variables used in JSX to be incorrectly marked as unused (`react/jsx-uses-vars`)
22

3-
💼 This rule is enabled in the `recommended` [config](https://github.com/jsx-eslint/eslint-plugin-react/#shareable-configs).
3+
💼 This rule is enabled in the ☑️ `recommended` [config](https://github.com/jsx-eslint/eslint-plugin-react/#shareable-configs).
44

55
<!-- end auto-generated rule header -->
66

docs/rules/no-children-prop.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Disallow passing of children as props (`react/no-children-prop`)
22

3-
💼 This rule is enabled in the `recommended` [config](https://github.com/jsx-eslint/eslint-plugin-react/#shareable-configs).
3+
💼 This rule is enabled in the ☑️ `recommended` [config](https://github.com/jsx-eslint/eslint-plugin-react/#shareable-configs).
44

55
<!-- end auto-generated rule header -->
66

docs/rules/no-danger-with-children.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Disallow when a DOM element is using both children and dangerouslySetInnerHTML (`react/no-danger-with-children`)
22

3-
💼 This rule is enabled in the `recommended` [config](https://github.com/jsx-eslint/eslint-plugin-react/#shareable-configs).
3+
💼 This rule is enabled in the ☑️ `recommended` [config](https://github.com/jsx-eslint/eslint-plugin-react/#shareable-configs).
44

55
<!-- end auto-generated rule header -->
66

docs/rules/no-deprecated.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Disallow usage of deprecated methods (`react/no-deprecated`)
22

3-
💼 This rule is enabled in the `recommended` [config](https://github.com/jsx-eslint/eslint-plugin-react/#shareable-configs).
3+
💼 This rule is enabled in the ☑️ `recommended` [config](https://github.com/jsx-eslint/eslint-plugin-react/#shareable-configs).
44

55
<!-- end auto-generated rule header -->
66

docs/rules/no-direct-mutation-state.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Disallow direct mutation of this.state (`react/no-direct-mutation-state`)
22

3-
💼 This rule is enabled in the `recommended` [config](https://github.com/jsx-eslint/eslint-plugin-react/#shareable-configs).
3+
💼 This rule is enabled in the ☑️ `recommended` [config](https://github.com/jsx-eslint/eslint-plugin-react/#shareable-configs).
44

55
<!-- end auto-generated rule header -->
66

docs/rules/no-find-dom-node.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Disallow usage of findDOMNode (`react/no-find-dom-node`)
22

3-
💼 This rule is enabled in the `recommended` [config](https://github.com/jsx-eslint/eslint-plugin-react/#shareable-configs).
3+
💼 This rule is enabled in the ☑️ `recommended` [config](https://github.com/jsx-eslint/eslint-plugin-react/#shareable-configs).
44

55
<!-- end auto-generated rule header -->
66

docs/rules/no-is-mounted.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Disallow usage of isMounted (`react/no-is-mounted`)
22

3-
💼 This rule is enabled in the `recommended` [config](https://github.com/jsx-eslint/eslint-plugin-react/#shareable-configs).
3+
💼 This rule is enabled in the ☑️ `recommended` [config](https://github.com/jsx-eslint/eslint-plugin-react/#shareable-configs).
44

55
<!-- end auto-generated rule header -->
66

docs/rules/no-render-return-value.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Disallow usage of the return value of ReactDOM.render (`react/no-render-return-value`)
22

3-
💼 This rule is enabled in the `recommended` [config](https://github.com/jsx-eslint/eslint-plugin-react/#shareable-configs).
3+
💼 This rule is enabled in the ☑️ `recommended` [config](https://github.com/jsx-eslint/eslint-plugin-react/#shareable-configs).
44

55
<!-- end auto-generated rule header -->
66

docs/rules/no-string-refs.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Disallow using string references (`react/no-string-refs`)
22

3-
💼 This rule is enabled in the `recommended` [config](https://github.com/jsx-eslint/eslint-plugin-react/#shareable-configs).
3+
💼 This rule is enabled in the ☑️ `recommended` [config](https://github.com/jsx-eslint/eslint-plugin-react/#shareable-configs).
44

55
<!-- end auto-generated rule header -->
66

docs/rules/no-unescaped-entities.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Disallow unescaped HTML entities from appearing in markup (`react/no-unescaped-entities`)
22

3-
💼 This rule is enabled in the `recommended` [config](https://github.com/jsx-eslint/eslint-plugin-react/#shareable-configs).
3+
💼 This rule is enabled in the ☑️ `recommended` [config](https://github.com/jsx-eslint/eslint-plugin-react/#shareable-configs).
44

55
<!-- end auto-generated rule header -->
66

docs/rules/no-unknown-property.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Disallow usage of unknown DOM property (`react/no-unknown-property`)
22

3-
💼 This rule is enabled in the `recommended` [config](https://github.com/jsx-eslint/eslint-plugin-react/#shareable-configs).
3+
💼 This rule is enabled in the ☑️ `recommended` [config](https://github.com/jsx-eslint/eslint-plugin-react/#shareable-configs).
44

55
🔧 This rule is automatically fixable by the [`--fix` CLI option](https://eslint.org/docs/latest/user-guide/command-line-interface#--fix).
66

docs/rules/no-unsafe.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Disallow usage of unsafe lifecycle methods (`react/no-unsafe`)
22

3-
💼 This rule is _disabled_ in the `recommended` [config](https://github.com/jsx-eslint/eslint-plugin-react/#shareable-configs).
3+
🚫 This rule is _disabled_ in the ☑️ `recommended` [config](https://github.com/jsx-eslint/eslint-plugin-react/#shareable-configs).
44

55
<!-- end auto-generated rule header -->
66

docs/rules/prop-types.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Disallow missing props validation in a React component definition (`react/prop-types`)
22

3-
💼 This rule is enabled in the `recommended` [config](https://github.com/jsx-eslint/eslint-plugin-react/#shareable-configs).
3+
💼 This rule is enabled in the ☑️ `recommended` [config](https://github.com/jsx-eslint/eslint-plugin-react/#shareable-configs).
44

55
<!-- end auto-generated rule header -->
66

docs/rules/react-in-jsx-scope.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Disallow missing React when using JSX (`react/react-in-jsx-scope`)
22

3-
💼 This rule is enabled in the `recommended` [config](https://github.com/jsx-eslint/eslint-plugin-react/#shareable-configs). This rule is _disabled_ in the `jsx-runtime` [config](https://github.com/jsx-eslint/eslint-plugin-react/#shareable-configs).
3+
💼🚫 This rule is enabled in the ☑️ `recommended` [config](https://github.com/jsx-eslint/eslint-plugin-react/#shareable-configs). This rule is _disabled_ in the `jsx-runtime` [config](https://github.com/jsx-eslint/eslint-plugin-react/#shareable-configs).
44

55
<!-- end auto-generated rule header -->
66

docs/rules/require-render-return.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Enforce ES5 or ES6 class for returning value in render function (`react/require-render-return`)
22

3-
💼 This rule is enabled in the `recommended` [config](https://github.com/jsx-eslint/eslint-plugin-react/#shareable-configs).
3+
💼 This rule is enabled in the ☑️ `recommended` [config](https://github.com/jsx-eslint/eslint-plugin-react/#shareable-configs).
44

55
<!-- end auto-generated rule header -->
66

package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
"posttest": "aud --production",
1717
"type-check": "tsc",
1818
"unit-test": "istanbul cover node_modules/mocha/bin/_mocha tests/lib/**/*.js tests/util/**/*.js tests/index.js",
19-
"update:eslint-docs": "eslint-doc-generator --ignore-config all --config-emoji recommended,💼 --url-configs \"https://github.com/jsx-eslint/eslint-plugin-react/#shareable-configs\""
19+
"update:eslint-docs": "eslint-doc-generator --ignore-config all --config-emoji recommended,☑️ --url-configs \"https://github.com/jsx-eslint/eslint-plugin-react/#shareable-configs\""
2020
},
2121
"repository": {
2222
"type": "git",
@@ -56,7 +56,7 @@
5656
"babel-eslint": "^8 || ^9 || ^10.1.0",
5757
"eslint": "^3 || ^4 || ^5 || ^6 || ^7 || ^8",
5858
"eslint-config-airbnb-base": "^15.0.0",
59-
"eslint-doc-generator": "^0.15.0",
59+
"eslint-doc-generator": "^1.0.0",
6060
"eslint-plugin-eslint-plugin": "^2.3.0 || ^3.5.3 || ^4.0.1 || ^5.0.5",
6161
"eslint-plugin-import": "^2.26.0",
6262
"eslint-remote-tester": "^3.0.0",

0 commit comments

Comments
 (0)