Skip to content

Commit 639a2b7

Browse files
committed
docs: update experimental rule warnings and feature indicators in documentation
1 parent 250d5d5 commit 639a2b7

File tree

9 files changed

+15
-7
lines changed

9 files changed

+15
-7
lines changed

apps/website/content/docs/rules/overview.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ The `jsx-*` rules check for issues exclusive to JSX syntax, which are absent fro
8484
| [`no-useless-fragment`](./no-useless-fragment) | 0️⃣ | `🔧` `⚙️` | Disallow useless fragment elements | |
8585
| [`prefer-destructuring-assignment`](./prefer-destructuring-assignment) | 0️⃣ | | Enforces destructuring assignment for component props and context | |
8686
| [`prefer-react-namespace-import`](./prefer-react-namespace-import) | 0️⃣ | `🔧` | Enforces React is imported via a namespace import | |
87-
| [`prefer-read-only-props`](./prefer-read-only-props) | 0️⃣ | `💭` `🧪` | Enforces read-only props in components | |
87+
| [`prefer-read-only-props`](./prefer-read-only-props) | 0️⃣ | `💭` | Enforces read-only props in components | |
8888
| [`prefer-shorthand-boolean`](./prefer-shorthand-boolean) | 0️⃣ | `🔧` | Enforces shorthand syntax for boolean attributes | |
8989
| [`prefer-shorthand-fragment`](./prefer-shorthand-fragment) | 0️⃣ | `🔧` | Enforces shorthand syntax for fragments | |
9090
| [`avoid-shorthand-boolean`](./avoid-shorthand-boolean) | 0️⃣ | `🔧` | Enforces explicit boolean values for boolean attributes | |
@@ -130,7 +130,7 @@ This section contains rules that are not part of the official `eslint-plugin-rea
130130

131131
| Rule || 🌟 | Description |
132132
| :--------------------------------------------------------------------------------------------------- | :-- | :--: | :---------------------------------------------------------------------------------------- |
133-
| [`no-direct-set-state-in-use-effect`](./hooks-extra-no-direct-set-state-in-use-effect) | 1️⃣ | `🧪` | Disallow direct calls to the `set` function of `useState` in `useEffect` |
133+
| [`no-direct-set-state-in-use-effect`](./hooks-extra-no-direct-set-state-in-use-effect) | 1️⃣ | | Disallow direct calls to the `set` function of `useState` in `useEffect` |
134134
| [`no-direct-set-state-in-use-layout-effect`](./hooks-extra-no-direct-set-state-in-use-layout-effect) | 0️⃣ | `🧪` | Disallow direct calls to the `set` function of `useState` in `useLayoutEffect` |
135135
| [`no-unnecessary-use-callback`](./hooks-extra-no-unnecessary-use-callback) | 0️⃣ | `🧪` | Disallow unnecessary usage of `useCallback` |
136136
| [`no-unnecessary-use-memo`](./hooks-extra-no-unnecessary-use-memo) | 0️⃣ | `🧪` | Disallow unnecessary usage of `useMemo` |

packages/plugins/eslint-plugin-react-hooks-extra/src/rules/no-direct-set-state-in-use-effect.md

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,6 @@ react-hooks-extra/no-direct-set-state-in-use-effect
1414
@eslint-react/hooks-extra/no-direct-set-state-in-use-effect
1515
```
1616

17-
**Features**
18-
19-
`🧪`
20-
2117
**Presets**
2218

2319
- `recommended`

packages/plugins/eslint-plugin-react-hooks-extra/src/rules/no-direct-set-state-in-use-layout-effect.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
title: no-direct-set-state-in-use-layout-effect
33
---
44

5+
<Callout type="warning">This rule is experimental and may change in the future or be removed. It is not recommended to use it in production code at this time.</Callout>
6+
57
**Full Name in `eslint-plugin-react-hooks-extra`**
68

79
```sh copy

packages/plugins/eslint-plugin-react-hooks-extra/src/rules/no-unnecessary-use-callback.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
title: no-unnecessary-use-callback
33
---
44

5+
<Callout type="warning">This rule is experimental and may change in the future or be removed. It is not recommended to use it in production code at this time.</Callout>
6+
57
**Full Name in `eslint-plugin-react-hooks-extra`**
68

79
```sh copy

packages/plugins/eslint-plugin-react-hooks-extra/src/rules/no-unnecessary-use-memo.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
title: no-unnecessary-use-memo
33
---
44

5+
<Callout type="warning">This rule is experimental and may change in the future or be removed. It is not recommended to use it in production code at this time.</Callout>
6+
57
**Full Name in `eslint-plugin-react-hooks-extra`**
68

79
```sh copy

packages/plugins/eslint-plugin-react-x/src/rules/no-complex-conditional-rendering.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
title: no-complex-conditional-rendering
33
---
44

5+
<Callout type="warning">This rule is experimental and may change in the future or be removed. It is not recommended to use it in production code at this time.</Callout>
6+
57
**Full Name in `eslint-plugin-react-x`**
68

79
```sh copy

packages/plugins/eslint-plugin-react-x/src/rules/no-implicit-key.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
title: no-implicit-key
33
---
44

5+
<Callout type="warning">This rule is experimental and may change in the future or be removed. It is not recommended to use it in production code at this time.</Callout>
6+
57
**Full Name in `eslint-plugin-react-x`**
68

79
```sh copy

packages/plugins/eslint-plugin-react-x/src/rules/no-misused-capture-owner-stack.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
title: no-misused-capture-owner-stack
33
---
44

5+
<Callout type="warning">This rule is experimental and may change in the future or be removed. It is not recommended to use it in production code at this time.</Callout>
6+
57
**Full Name in `eslint-plugin-react-x`**
68

79
```sh copy

packages/plugins/eslint-plugin-react-x/src/rules/prefer-read-only-props.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ react-x/prefer-read-only-props
1616

1717
**Features**
1818

19-
`💭` `🧪`
19+
`💭`
2020

2121
## Description
2222

0 commit comments

Comments
 (0)