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
@@ -72,6 +74,10 @@ The `jsx-*` rules check for issues exclusive to JSX syntax, which are absent fro
72
74
|[`no-set-state-in-component-did-update`](./no-set-state-in-component-did-update)| 1️⃣ || Disallow calling `this.setState` in `componentDidUpdate` outside of functions, such as callbacks ||
73
75
|[`no-set-state-in-component-will-update`](./no-set-state-in-component-will-update)| 1️⃣ || Disallow calling `this.setState` in `componentWillUpdate` outside of functions, such as callbacks ||
|[`no-unnecessary-use-callback`](./no-unnecessary-use-callback)| 0️⃣ |`🧪`| Disallow unnecessary usage of `useCallback`||
78
+
|[`no-unnecessary-use-effect`](./no-unnecessary-use-effect)| 0️⃣ |`🧪`| Disallow unnecessary usage of `useEffect`||
79
+
|[`no-unnecessary-use-memo`](./no-unnecessary-use-memo)| 0️⃣ |`🧪`| Disallow unnecessary usage of `useMemo`||
80
+
|[`no-unnecessary-use-prefix`](./no-unnecessary-use-prefix)| 0️⃣ || Enforces that a function with the `use` prefix should use at least one Hook inside of it ||
75
81
|[`no-unsafe-component-will-mount`](./no-unsafe-component-will-mount)| 1️⃣ || Warns the usage of `UNSAFE_componentWillMount` in class components ||
76
82
|[`no-unsafe-component-will-receive-props`](./no-unsafe-component-will-receive-props)| 1️⃣ || Warns the usage of `UNSAFE_componentWillReceiveProps` in class components ||
77
83
|[`no-unsafe-component-will-update`](./no-unsafe-component-will-update)| 1️⃣ || Warns the usage of `UNSAFE_componentWillUpdate` in class components ||
@@ -85,10 +91,7 @@ The `jsx-*` rules check for issues exclusive to JSX syntax, which are absent fro
85
91
|[`prefer-destructuring-assignment`](./prefer-destructuring-assignment)| 0️⃣ || Enforces destructuring assignment for component props and context ||
86
92
|[`prefer-react-namespace-import`](./prefer-react-namespace-import)| 0️⃣ |`🔧`| Enforces React is imported via a namespace import ||
87
93
|[`prefer-read-only-props`](./prefer-read-only-props)| 0️⃣ |`💭`| Enforces read-only props in components ||
88
-
|[`prefer-shorthand-boolean`](./prefer-shorthand-boolean)| 0️⃣ |`🔧`| Enforces shorthand syntax for boolean attributes ||
89
-
|[`prefer-shorthand-fragment`](./prefer-shorthand-fragment)| 0️⃣ |`🔧`| Enforces shorthand syntax for fragments ||
|[`avoid-shorthand-fragment`](./avoid-shorthand-fragment)| 0️⃣ || Enforces explicit `<Fragment>` components instead of the shorthand `<>` or `</>` syntax ||
94
+
|[`prefer-use-state-lazy-initialization`](./prefer-use-state-lazy-initialization)| 1️⃣ || Enforces function calls made inside `useState` to be wrapped in an `initializer function`||
0 commit comments