You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
|[`no-component-will-mount`](./no-component-will-mount)| 2️⃣ |`🔄`| Replaces usages of `componentWillMount` with `UNSAFE_componentWillMount`| >=16.3.0 |
42
43
|[`no-component-will-receive-props`](./no-component-will-receive-props)| 2️⃣ |`🔄`| Replaces usages of `componentWillReceiveProps` with `UNSAFE_componentWillReceiveProps`| >=16.3.0 |
43
44
|[`no-component-will-update`](./no-component-will-update)| 2️⃣ |`🔄`| Replaces usages of `componentWillUpdate` with `UNSAFE_componentWillUpdate`| >=16.3.0 |
@@ -48,7 +49,7 @@ Linter rules can have false positives, false negatives, and some rules are depen
48
49
|[`no-duplicate-jsx-props`](./no-duplicate-jsx-props)| 1️⃣ || Disallow duplicate props in JSX elements ||
49
50
|[`no-duplicate-key`](./no-duplicate-key)| 2️⃣ || Disallow duplicate `key` on elements in the same array or a list of `children`||
50
51
|[`no-forward-ref`](./no-forward-ref)| 1️⃣ |`🔄`| Replaces usages of `forwardRef` with passing `ref` as a prop | >=19.0.0 |
51
-
|[`no-implicit-key`](./no-implicit-key)| 1️⃣ || Prevents `key` from not being explicitly specified (e.g. spreading `key` from objects) ||
52
+
|[`no-implicit-key`](./no-implicit-key)| 1️⃣ |`🧪`| Prevents `key` from not being explicitly specified (e.g. spreading `key` from objects) ||
52
53
|[`no-leaked-conditional-rendering`](./no-leaked-conditional-rendering)| 1️⃣ |`💭`| Prevents problematic leaked values from being rendered ||
53
54
|[`no-missing-component-display-name`](./no-missing-component-display-name)| 0️⃣ || Enforces that all components have a `displayName` which can be used in devtools ||
54
55
|[`no-missing-context-display-name`](./no-missing-context-display-name)| 0️⃣ || Enforces that all contexts have a `displayName` which can be used in devtools ||
@@ -71,8 +72,8 @@ Linter rules can have false positives, false negatives, and some rules are depen
71
72
|[`no-useless-forward-ref`](./no-useless-forward-ref)| 1️⃣ || Disallow useless `forwardRef` calls on components that don't use `ref`s ||
72
73
|[`no-useless-fragment`](./no-useless-fragment)| 0️⃣ |`🔧``⚙️`| Disallow useless fragment elements ||
73
74
|[`prefer-destructuring-assignment`](./prefer-destructuring-assignment)| 0️⃣ || Enforces destructuring assignment for component props and context ||
74
-
|[`prefer-react-namespace-import`](./prefer-react-namespace-import)| 0️⃣ |`🔧`| Enforces React is imported via a namespace import ||
75
-
|[`prefer-read-only-props`](./prefer-read-only-props)| 0️⃣ |`💭`| Enforces read-only props in components ||
75
+
|[`prefer-react-namespace-import`](./prefer-react-namespace-import)| 0️⃣ |`🧪``🔧`| Enforces React is imported via a namespace import ||
76
+
|[`prefer-read-only-props`](./prefer-read-only-props)| 0️⃣ |`🧪``💭`| Enforces read-only props in components ||
76
77
|[`prefer-shorthand-boolean`](./prefer-shorthand-boolean)| 0️⃣ |`🔧`| Enforces shorthand syntax for boolean attributes ||
77
78
|[`prefer-shorthand-fragment`](./prefer-shorthand-fragment)| 0️⃣ |`🔧`| Enforces shorthand syntax for fragments ||
78
79
|[`use-jsx-vars`](./use-jsx-vars)| 1️⃣ || Marks variables used in JSX as used ||
@@ -109,14 +110,14 @@ Linter rules can have false positives, false negatives, and some rules are depen
|[`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`|
115
-
|[`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`|
116
-
|[`no-unnecessary-use-callback`](./hooks-extra-no-unnecessary-use-callback)| 0️⃣ | Disallow unnecessary usage of `useCallback`|
117
-
|[`no-unnecessary-use-memo`](./hooks-extra-no-unnecessary-use-memo)| 0️⃣ | Disallow unnecessary usage of `useMemo`|
118
-
|[`no-unnecessary-use-prefix`](./hooks-extra-no-unnecessary-use-prefix)| 1️⃣ | Enforces that a function with the `use` prefix should use at least one Hook inside of it |
119
-
|[`prefer-use-state-lazy-initialization`](./hooks-extra-prefer-use-state-lazy-initialization)| 0️⃣ | Enforces function calls made inside `useState` to be wrapped in an `initializer function`|
|[`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`|
116
+
|[`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`|
117
+
|[`no-unnecessary-use-callback`](./hooks-extra-no-unnecessary-use-callback)| 0️⃣ |`🧪`|Disallow unnecessary usage of `useCallback`|
118
+
|[`no-unnecessary-use-memo`](./hooks-extra-no-unnecessary-use-memo)| 0️⃣ |`🧪`|Disallow unnecessary usage of `useMemo`|
119
+
|[`no-unnecessary-use-prefix`](./hooks-extra-no-unnecessary-use-prefix)| 1️⃣ ||Enforces that a function with the `use` prefix should use at least one Hook inside of it |
120
+
|[`prefer-use-state-lazy-initialization`](./hooks-extra-prefer-use-state-lazy-initialization)| 0️⃣ |`🧪`|Enforces function calls made inside `useState` to be wrapped in an `initializer function`|
0 commit comments