Skip to content

Commit 1a69655

Browse files
committed
docs: automate docs with eslint-doc-generator
1 parent f17395e commit 1a69655

File tree

108 files changed

+397
-523
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

108 files changed

+397
-523
lines changed

.github/workflows/readme.yml

-17
This file was deleted.

README.md

+112-115
Large diffs are not rendered by default.

docs/rules/boolean-prop-naming.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
# Enforces consistent naming for boolean props (react/boolean-prop-naming)
1+
# Enforces consistent naming for boolean props (`react/boolean-prop-naming`)
22

3-
💼 This rule is enabled in the following [configs](https://github.com/jsx-eslint/eslint-plugin-react#shareable-configurations): `all`.
3+
<!-- end rule header -->
44

55
Allows you to enforce a consistent naming pattern for props which expect a boolean value.
66

docs/rules/button-has-type.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
# Disallow usage of `button` elements without an explicit `type` attribute (react/button-has-type)
1+
# Disallow usage of `button` elements without an explicit `type` attribute (`react/button-has-type`)
22

3-
💼 This rule is enabled in the following [configs](https://github.com/jsx-eslint/eslint-plugin-react#shareable-configurations): `all`.
3+
<!-- end rule header -->
44

55
The default value of `type` attribute for `button` HTML element is `"submit"` which is often not the desired behavior and may lead to unexpected page reloads.
66
This rules enforces an explicit `type` attribute for all the `button` elements and checks that its value is valid per spec (i.e., is one of `"button"`, `"submit"`, and `"reset"`).

docs/rules/default-props-match-prop-types.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
# Enforce all defaultProps have a corresponding non-required PropType (react/default-props-match-prop-types)
1+
# Enforce all defaultProps have a corresponding non-required PropType (`react/default-props-match-prop-types`)
22

3-
💼 This rule is enabled in the following [configs](https://github.com/jsx-eslint/eslint-plugin-react#shareable-configurations): `all`.
3+
<!-- end rule header -->
44

55
This rule aims to ensure that any prop in `defaultProps` has a non-required type
66
definition.

docs/rules/destructuring-assignment.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
# Enforce consistent usage of destructuring assignment of props, state, and context (react/destructuring-assignment)
1+
# Enforce consistent usage of destructuring assignment of props, state, and context (`react/destructuring-assignment`)
22

3-
💼 This rule is enabled in the following [configs](https://github.com/jsx-eslint/eslint-plugin-react#shareable-configurations): `all`.
3+
🔧 This rule is automatically fixable by the [`--fix` CLI option](https://eslint.org/docs/latest/user-guide/command-line-interface#--fix).
44

5-
🔧 This rule is automatically fixable using the `--fix` [flag](https://eslint.org/docs/latest/user-guide/command-line-interface#--fix) on the command line.
5+
<!-- end rule header -->
66

77
Rule can be set to either of `always` or `never`;
88

docs/rules/display-name.md

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

3-
💼 This rule is enabled in the following [configs](https://github.com/jsx-eslint/eslint-plugin-react#shareable-configurations): `all`, `recommended`.
3+
✅ This rule is enabled in the `recommended` [config](https://github.com/jsx-eslint/eslint-plugin-react/blob/master/README.md#shareable-configs).
4+
5+
<!-- end rule header -->
46

57
DisplayName allows you to name your component. This name is used by React in debugging messages.
68

docs/rules/forbid-component-props.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
# Disallow certain props on components (react/forbid-component-props)
1+
# Disallow certain props on components (`react/forbid-component-props`)
22

3-
💼 This rule is enabled in the following [configs](https://github.com/jsx-eslint/eslint-plugin-react#shareable-configurations): `all`.
3+
<!-- end rule header -->
44

55
By default this rule prevents passing of [props that add lots of complexity](https://medium.com/brigade-engineering/don-t-pass-css-classes-between-components-e9f7ab192785) (`className`, `style`) to Components. This rule only applies to Components (e.g. `<Foo />`) and not DOM nodes (e.g. `<div />`). The list of forbidden props can be customized with the `forbid` option.
66

docs/rules/forbid-dom-props.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
# Disallow certain props on DOM Nodes (react/forbid-dom-props)
1+
# Disallow certain props on DOM Nodes (`react/forbid-dom-props`)
22

3-
💼 This rule is enabled in the following [configs](https://github.com/jsx-eslint/eslint-plugin-react#shareable-configurations): `all`.
3+
<!-- end rule header -->
44

55
This rule prevents passing of props to elements. This rule only applies to DOM Nodes (e.g. `<div />`) and not Components (e.g. `<Component />`).
66
The list of forbidden props can be customized with the `forbid` option.

docs/rules/forbid-elements.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
# Disallow certain elements (react/forbid-elements)
1+
# Disallow certain elements (`react/forbid-elements`)
22

3-
💼 This rule is enabled in the following [configs](https://github.com/jsx-eslint/eslint-plugin-react#shareable-configurations): `all`.
3+
<!-- end rule header -->
44

55
You may want to forbid usage of certain elements in favor of others, (e.g. forbid all `<div />` and use `<Box />` instead). This rule allows you to configure a list of forbidden elements and to specify their desired replacements.
66

docs/rules/forbid-foreign-prop-types.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
# Disallow using another component's propTypes (react/forbid-foreign-prop-types)
1+
# Disallow using another component's propTypes (`react/forbid-foreign-prop-types`)
22

3-
💼 This rule is enabled in the following [configs](https://github.com/jsx-eslint/eslint-plugin-react#shareable-configurations): `all`.
3+
<!-- end rule header -->
44

55
This rule forbids using another component's prop types unless they are explicitly imported/exported. This allows people who want to use [babel-plugin-transform-react-remove-prop-types](https://github.com/oliviertassinari/babel-plugin-transform-react-remove-prop-types) to remove propTypes from their components in production builds, to do so safely.
66

docs/rules/forbid-prop-types.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
# Disallow certain propTypes (react/forbid-prop-types)
1+
# Disallow certain propTypes (`react/forbid-prop-types`)
22

3-
💼 This rule is enabled in the following [configs](https://github.com/jsx-eslint/eslint-plugin-react#shareable-configurations): `all`.
3+
<!-- end rule header -->
44

55
By default this rule prevents vague prop types with more specific alternatives available (`any`, `array`, `object`), but any prop type can be disabled if desired. The defaults are chosen because they have obvious replacements. `any` should be replaced with, well, anything. `array` and `object` can be replaced with `arrayOf` and `shape`, respectively.
66

docs/rules/function-component-definition.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
# Enforce a specific function type for function components (react/function-component-definition)
1+
# Enforce a specific function type for function components (`react/function-component-definition`)
22

3-
💼 This rule is enabled in the following [configs](https://github.com/jsx-eslint/eslint-plugin-react#shareable-configurations): `all`.
3+
🔧 This rule is automatically fixable by the [`--fix` CLI option](https://eslint.org/docs/latest/user-guide/command-line-interface#--fix).
44

5-
🔧 This rule is automatically fixable using the `--fix` [flag](https://eslint.org/docs/latest/user-guide/command-line-interface#--fix) on the command line.
5+
<!-- end rule header -->
66

77
This option enforces a specific function type for function components.
88

docs/rules/hook-use-state.md

+4-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
1-
# Ensure destructuring and symmetric naming of useState hook value and setter variables (react/hook-use-state)
1+
# Ensure destructuring and symmetric naming of useState hook value and setter variables (`react/hook-use-state`)
22

3-
💼 This rule is enabled in the following [configs](https://github.com/jsx-eslint/eslint-plugin-react#shareable-configurations): `all`.
3+
💡 This rule is manually fixable by [editor suggestions](https://eslint.org/docs/developer-guide/working-with-rules#providing-suggestions).
4+
5+
<!-- end rule header -->
46

57
💡 This rule provides editor [suggestions](https://eslint.org/docs/developer-guide/working-with-rules#providing-suggestions).
68

docs/rules/iframe-missing-sandbox.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
# Enforce sandbox attribute on iframe elements (react/iframe-missing-sandbox)
1+
# Enforce sandbox attribute on iframe elements (`react/iframe-missing-sandbox`)
22

3-
💼 This rule is enabled in the following [configs](https://github.com/jsx-eslint/eslint-plugin-react#shareable-configurations): `all`.
3+
<!-- end rule header -->
44

55
The sandbox attribute enables an extra set of restrictions for the content in the iframe. Using sandbox attribute is considered a good security practice.
66

docs/rules/jsx-boolean-value.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
# Enforce boolean attributes notation in JSX (react/jsx-boolean-value)
1+
# Enforce boolean attributes notation in JSX (`react/jsx-boolean-value`)
22

3-
💼 This rule is enabled in the following [configs](https://github.com/jsx-eslint/eslint-plugin-react#shareable-configurations): `all`.
3+
🔧 This rule is automatically fixable by the [`--fix` CLI option](https://eslint.org/docs/latest/user-guide/command-line-interface#--fix).
44

5-
🔧 This rule is automatically fixable using the `--fix` [flag](https://eslint.org/docs/latest/user-guide/command-line-interface#--fix) on the command line.
5+
<!-- end rule header -->
66

77
[When using a boolean attribute in JSX](https://facebook.github.io/react/docs/jsx-in-depth.html#boolean-attributes), you can set the attribute value to `true` or omit the value.
88

docs/rules/jsx-child-element-spacing.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
# Enforce or disallow spaces inside of curly braces in JSX attributes and expressions (react/jsx-child-element-spacing)
1+
# Enforce or disallow spaces inside of curly braces in JSX attributes and expressions (`react/jsx-child-element-spacing`)
22

3-
💼 This rule is enabled in the following [configs](https://github.com/jsx-eslint/eslint-plugin-react#shareable-configurations): `all`.
3+
<!-- end rule header -->
44

55
## Rule Details
66

docs/rules/jsx-closing-bracket-location.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
# Enforce closing bracket location in JSX (react/jsx-closing-bracket-location)
1+
# Enforce closing bracket location in JSX (`react/jsx-closing-bracket-location`)
22

3-
💼 This rule is enabled in the following [configs](https://github.com/jsx-eslint/eslint-plugin-react#shareable-configurations): `all`.
3+
🔧 This rule is automatically fixable by the [`--fix` CLI option](https://eslint.org/docs/latest/user-guide/command-line-interface#--fix).
44

5-
🔧 This rule is automatically fixable using the `--fix` [flag](https://eslint.org/docs/latest/user-guide/command-line-interface#--fix) on the command line.
5+
<!-- end rule header -->
66

77
Enforce the closing bracket location for JSX multiline elements.
88

docs/rules/jsx-closing-tag-location.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
# Enforce closing tag location for multiline JSX (react/jsx-closing-tag-location)
1+
# Enforce closing tag location for multiline JSX (`react/jsx-closing-tag-location`)
22

3-
💼 This rule is enabled in the following [configs](https://github.com/jsx-eslint/eslint-plugin-react#shareable-configurations): `all`.
3+
🔧 This rule is automatically fixable by the [`--fix` CLI option](https://eslint.org/docs/latest/user-guide/command-line-interface#--fix).
44

5-
🔧 This rule is automatically fixable using the `--fix` [flag](https://eslint.org/docs/latest/user-guide/command-line-interface#--fix) on the command line.
5+
<!-- end rule header -->
66

77
Enforce the closing tag location for multiline JSX elements.
88

docs/rules/jsx-curly-brace-presence.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
# Disallow unnecessary JSX expressions when literals alone are sufficient or enforce JSX expressions on literals in JSX children or attributes (react/jsx-curly-brace-presence)
1+
# Disallow unnecessary JSX expressions when literals alone are sufficient or enforce JSX expressions on literals in JSX children or attributes (`react/jsx-curly-brace-presence`)
22

3-
💼 This rule is enabled in the following [configs](https://github.com/jsx-eslint/eslint-plugin-react#shareable-configurations): `all`.
3+
🔧 This rule is automatically fixable by the [`--fix` CLI option](https://eslint.org/docs/latest/user-guide/command-line-interface#--fix).
44

5-
🔧 This rule is automatically fixable using the `--fix` [flag](https://eslint.org/docs/latest/user-guide/command-line-interface#--fix) on the command line.
5+
<!-- end rule header -->
66

77
This rule allows you to enforce curly braces or disallow unnecessary curly braces in JSX props and/or children.
88

docs/rules/jsx-curly-newline.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
# Enforce consistent linebreaks in curly braces in JSX attributes and expressions (react/jsx-curly-newline)
1+
# Enforce consistent linebreaks in curly braces in JSX attributes and expressions (`react/jsx-curly-newline`)
22

3-
💼 This rule is enabled in the following [configs](https://github.com/jsx-eslint/eslint-plugin-react#shareable-configurations): `all`.
3+
🔧 This rule is automatically fixable by the [`--fix` CLI option](https://eslint.org/docs/latest/user-guide/command-line-interface#--fix).
44

5-
🔧 This rule is automatically fixable using the `--fix` [flag](https://eslint.org/docs/latest/user-guide/command-line-interface#--fix) on the command line.
5+
<!-- end rule header -->
66

77
Many style guides require or disallow newlines inside of jsx curly expressions.
88

docs/rules/jsx-curly-spacing.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
# Enforce or disallow spaces inside of curly braces in JSX attributes and expressions (react/jsx-curly-spacing)
1+
# Enforce or disallow spaces inside of curly braces in JSX attributes and expressions (`react/jsx-curly-spacing`)
22

3-
💼 This rule is enabled in the following [configs](https://github.com/jsx-eslint/eslint-plugin-react#shareable-configurations): `all`.
3+
🔧 This rule is automatically fixable by the [`--fix` CLI option](https://eslint.org/docs/latest/user-guide/command-line-interface#--fix).
44

5-
🔧 This rule is automatically fixable using the `--fix` [flag](https://eslint.org/docs/latest/user-guide/command-line-interface#--fix) on the command line.
5+
<!-- end rule header -->
66

77
While formatting preferences are very personal, a number of style guides require or disallow spaces between curly braces.
88

docs/rules/jsx-equals-spacing.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
# Enforce or disallow spaces around equal signs in JSX attributes (react/jsx-equals-spacing)
1+
# Enforce or disallow spaces around equal signs in JSX attributes (`react/jsx-equals-spacing`)
22

3-
💼 This rule is enabled in the following [configs](https://github.com/jsx-eslint/eslint-plugin-react#shareable-configurations): `all`.
3+
🔧 This rule is automatically fixable by the [`--fix` CLI option](https://eslint.org/docs/latest/user-guide/command-line-interface#--fix).
44

5-
🔧 This rule is automatically fixable using the `--fix` [flag](https://eslint.org/docs/latest/user-guide/command-line-interface#--fix) on the command line.
5+
<!-- end rule header -->
66

77
Some style guides require or disallow spaces around equal signs.
88

docs/rules/jsx-filename-extension.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
# Disallow file extensions that may contain JSX (react/jsx-filename-extension)
1+
# Disallow file extensions that may contain JSX (`react/jsx-filename-extension`)
22

3-
💼 This rule is enabled in the following [configs](https://github.com/jsx-eslint/eslint-plugin-react#shareable-configurations): `all`.
3+
<!-- end rule header -->
44

55
## Rule Details
66

docs/rules/jsx-first-prop-new-line.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
# Enforce proper position of the first property in JSX (react/jsx-first-prop-new-line)
1+
# Enforce proper position of the first property in JSX (`react/jsx-first-prop-new-line`)
22

3-
💼 This rule is enabled in the following [configs](https://github.com/jsx-eslint/eslint-plugin-react#shareable-configurations): `all`.
3+
🔧 This rule is automatically fixable by the [`--fix` CLI option](https://eslint.org/docs/latest/user-guide/command-line-interface#--fix).
44

5-
🔧 This rule is automatically fixable using the `--fix` [flag](https://eslint.org/docs/latest/user-guide/command-line-interface#--fix) on the command line.
5+
<!-- end rule header -->
66

77
Ensure correct position of the first property.
88

docs/rules/jsx-fragments.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
# Enforce shorthand or standard form for React fragments (react/jsx-fragments)
1+
# Enforce shorthand or standard form for React fragments (`react/jsx-fragments`)
22

3-
💼 This rule is enabled in the following [configs](https://github.com/jsx-eslint/eslint-plugin-react#shareable-configurations): `all`.
3+
🔧 This rule is automatically fixable by the [`--fix` CLI option](https://eslint.org/docs/latest/user-guide/command-line-interface#--fix).
44

5-
🔧 This rule is automatically fixable using the `--fix` [flag](https://eslint.org/docs/latest/user-guide/command-line-interface#--fix) on the command line.
5+
<!-- end rule header -->
66

77
In JSX, a React [fragment] is created either with `<React.Fragment>...</React.Fragment>`, or, using the shorthand syntax, `<>...</>`.
88

docs/rules/jsx-handler-names.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
# Enforce event handler naming conventions in JSX (react/jsx-handler-names)
1+
# Enforce event handler naming conventions in JSX (`react/jsx-handler-names`)
22

3-
💼 This rule is enabled in the following [configs](https://github.com/jsx-eslint/eslint-plugin-react#shareable-configurations): `all`.
3+
<!-- end rule header -->
44

55
Ensures that any component or prop methods used to handle events are correctly prefixed.
66

docs/rules/jsx-indent-props.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
# Enforce props indentation in JSX (react/jsx-indent-props)
1+
# Enforce props indentation in JSX (`react/jsx-indent-props`)
22

3-
💼 This rule is enabled in the following [configs](https://github.com/jsx-eslint/eslint-plugin-react#shareable-configurations): `all`.
3+
🔧 This rule is automatically fixable by the [`--fix` CLI option](https://eslint.org/docs/latest/user-guide/command-line-interface#--fix).
44

5-
🔧 This rule is automatically fixable using the `--fix` [flag](https://eslint.org/docs/latest/user-guide/command-line-interface#--fix) on the command line.
5+
<!-- end rule header -->
66

77
This option validates a specific indentation style for props.
88

docs/rules/jsx-indent.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
# Enforce JSX indentation (react/jsx-indent)
1+
# Enforce JSX indentation (`react/jsx-indent`)
22

3-
💼 This rule is enabled in the following [configs](https://github.com/jsx-eslint/eslint-plugin-react#shareable-configurations): `all`.
3+
🔧 This rule is automatically fixable by the [`--fix` CLI option](https://eslint.org/docs/latest/user-guide/command-line-interface#--fix).
44

5-
🔧 This rule is automatically fixable using the `--fix` [flag](https://eslint.org/docs/latest/user-guide/command-line-interface#--fix) on the command line.
5+
<!-- end rule header -->
66

77
This option validates a specific indentation style for JSX.
88

docs/rules/jsx-key.md

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

3-
💼 This rule is enabled in the following [configs](https://github.com/jsx-eslint/eslint-plugin-react#shareable-configurations): `all`, `recommended`.
3+
✅ This rule is enabled in the `recommended` [config](https://github.com/jsx-eslint/eslint-plugin-react/blob/master/README.md#shareable-configs).
4+
5+
<!-- end rule header -->
46

57
Warn if an element that likely requires a `key` prop--namely, one present in an
68
array literal or an arrow function expression.

docs/rules/jsx-max-depth.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
# Enforce JSX maximum depth (react/jsx-max-depth)
1+
# Enforce JSX maximum depth (`react/jsx-max-depth`)
22

3-
💼 This rule is enabled in the following [configs](https://github.com/jsx-eslint/eslint-plugin-react#shareable-configurations): `all`.
3+
<!-- end rule header -->
44

55
This option validates a specific depth for JSX.
66

docs/rules/jsx-max-props-per-line.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
# Enforce maximum of props on a single line in JSX (react/jsx-max-props-per-line)
1+
# Enforce maximum of props on a single line in JSX (`react/jsx-max-props-per-line`)
22

3-
💼 This rule is enabled in the following [configs](https://github.com/jsx-eslint/eslint-plugin-react#shareable-configurations): `all`.
3+
🔧 This rule is automatically fixable by the [`--fix` CLI option](https://eslint.org/docs/latest/user-guide/command-line-interface#--fix).
44

5-
🔧 This rule is automatically fixable using the `--fix` [flag](https://eslint.org/docs/latest/user-guide/command-line-interface#--fix) on the command line.
5+
<!-- end rule header -->
66

77
Limiting the maximum of props on a single line can improve readability.
88

0 commit comments

Comments
 (0)