Skip to content

Commit 4ccb5cc

Browse files
committed
docs: tweak rule notices
1 parent a766255 commit 4ccb5cc

31 files changed

+39
-41
lines changed

docs/rules/destructuring-assignment.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Enforce consistent usage of destructuring assignment of props, state, and context (react/destructuring-assignment)
22

3-
🔧 This rule is automatically fixable using the `--fix` flag on the command line.
3+
🔧 This rule is automatically fixable using the `--fix` [flag](https://eslint.org/docs/latest/user-guide/command-line-interface#--fix) on the command line.
44

55
Rule can be set to either of `always` or `never`;
66
```js

docs/rules/function-component-definition.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Enforce a specific function type for function components (react/function-component-definition)
22

3-
🔧 This rule is automatically fixable using the `--fix` flag on the command line.
3+
🔧 This rule is automatically fixable using the `--fix` [flag](https://eslint.org/docs/latest/user-guide/command-line-interface#--fix) on the command line.
44

55
This option enforces a specific function type for function components.
66

docs/rules/hook-use-state.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Ensure destructuring and symmetric naming of useState hook value and setter variables (react/hook-use-state)
22

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

55
## Rule Details
66

docs/rules/jsx-boolean-value.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Enforce boolean attributes notation in JSX (react/jsx-boolean-value)
22

3-
🔧 This rule is automatically fixable using the `--fix` flag on the command line.
3+
🔧 This rule is automatically fixable using the `--fix` [flag](https://eslint.org/docs/latest/user-guide/command-line-interface#--fix) on the command line.
44

55
[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. This rule will enforce one or the other to keep consistency in your code.
66

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Validate closing bracket location in JSX (react/jsx-closing-bracket-location)
22

3-
🔧 This rule is automatically fixable using the `--fix` flag on the command line.
3+
🔧 This rule is automatically fixable using the `--fix` [flag](https://eslint.org/docs/latest/user-guide/command-line-interface#--fix) on the command line.
44

55
Enforce the closing bracket location for JSX multiline elements.
66

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Validate closing tag location in JSX (react/jsx-closing-tag-location)
22

3-
🔧 This rule is automatically fixable using the `--fix` flag on the command line.
3+
🔧 This rule is automatically fixable using the `--fix` [flag](https://eslint.org/docs/latest/user-guide/command-line-interface#--fix) on the command line.
44

55
Enforce the closing tag location for multiline JSX elements.
66

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Enforce curly braces or disallow unnecessary curly braces in JSX props and/or children. (react/jsx-curly-brace-presence)
22

3-
🔧 This rule is automatically fixable using the `--fix` flag on the command line.
3+
🔧 This rule is automatically fixable using the `--fix` [flag](https://eslint.org/docs/latest/user-guide/command-line-interface#--fix) on the command line.
44

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

docs/rules/jsx-curly-newline.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Enforce linebreaks in curly braces in JSX attributes and expressions. (react/jsx-curly-newline)
22

3-
🔧 This rule is automatically fixable using the `--fix` flag on the command line.
3+
🔧 This rule is automatically fixable using the `--fix` [flag](https://eslint.org/docs/latest/user-guide/command-line-interface#--fix) on the command line.
44

55
Many style guides require or disallow newlines inside of jsx curly expressions.
66

docs/rules/jsx-curly-spacing.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Enforce or disallow spaces inside of curly braces in JSX attributes and expressions. (react/jsx-curly-spacing)
22

3-
🔧 This rule is automatically fixable using the `--fix` flag on the command line.
3+
🔧 This rule is automatically fixable using the `--fix` [flag](https://eslint.org/docs/latest/user-guide/command-line-interface#--fix) on the command line.
44

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

docs/rules/jsx-equals-spacing.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Enforce or disallow spaces around equal signs in JSX attributes. (react/jsx-equals-spacing)
22

3-
🔧 This rule is automatically fixable using the `--fix` flag on the command line.
3+
🔧 This rule is automatically fixable using the `--fix` [flag](https://eslint.org/docs/latest/user-guide/command-line-interface#--fix) on the command line.
44

55
Some style guides require or disallow spaces around equal signs.
66

0 commit comments

Comments
 (0)