Skip to content

Commit c56aa7c

Browse files
committed
docs: update 'See Also' sections for shorthand boolean and fragment rules
1 parent 41fc7b8 commit c56aa7c

File tree

4 files changed

+16
-0
lines changed

4 files changed

+16
-0
lines changed

packages/plugins/eslint-plugin-react-x/src/rules/avoid-shorthand-boolean.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,5 +57,9 @@ function MyComponent() {
5757

5858
## See Also
5959

60+
- [`avoid-shorthand-fragment`](./avoid-shorthand-fragment)\
61+
Enforces the use of explicit `<Fragment>` or `<React.Fragment>` components instead of the shorthand `<>` or `</>` syntax.
6062
- [`prefer-shorthand-boolean`](./prefer-shorthand-boolean)\
6163
Enforces the use of shorthand syntax for boolean attributes.
64+
- [`prefer-shorthand-fragment`](./prefer-shorthand-fragment)\
65+
Enforces the use of shorthand syntax for fragments.

packages/plugins/eslint-plugin-react-x/src/rules/avoid-shorthand-fragment.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,5 +63,9 @@ function MyComponent() {
6363

6464
## See Also
6565

66+
- [`avoid-shorthand-boolean`](./avoid-shorthand-boolean)\
67+
Enforces the use of explicit boolean values for boolean attributes.
68+
- [`prefer-shorthand-boolean`](./prefer-shorthand-boolean)\
69+
Enforces the use of shorthand syntax for boolean attributes.
6670
- [`prefer-shorthand-fragment`](./prefer-shorthand-fragment)\
6771
Enforces the use of shorthand syntax for fragments.

packages/plugins/eslint-plugin-react-x/src/rules/prefer-shorthand-boolean.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,3 +59,7 @@ function MyComponent() {
5959

6060
- [`avoid-shorthand-boolean`](./avoid-shorthand-boolean)\
6161
Enforces the use of explicit boolean values for boolean attributes.
62+
- [`avoid-shorthand-fragment`](./avoid-shorthand-fragment)\
63+
Enforces the use of explicit `<Fragment>` or `<React.Fragment>` components instead of the shorthand `<>` or `</>` syntax.
64+
- [`prefer-shorthand-fragment`](./prefer-shorthand-fragment)\
65+
Enforces the use of shorthand syntax for fragments.

packages/plugins/eslint-plugin-react-x/src/rules/prefer-shorthand-fragment.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,5 +65,9 @@ function MyComponent() {
6565

6666
## See Also
6767

68+
- [`avoid-shorthand-boolean`](./avoid-shorthand-boolean)\
69+
Enforces the use of explicit boolean values for boolean attributes.
6870
- [`avoid-shorthand-fragment`](./avoid-shorthand-fragment)\
6971
Enforces the use of explicit `<Fragment>` or `<React.Fragment>` components instead of the shorthand `<>` or `</>` syntax.
72+
- [`prefer-shorthand-boolean`](./prefer-shorthand-boolean)\
73+
Enforces the use of shorthand syntax for boolean attributes.

0 commit comments

Comments
 (0)