Skip to content

Commit c42b44b

Browse files
committed
docs: update rules overview page
1 parent 3d690ed commit c42b44b

File tree

6 files changed

+22
-19
lines changed

6 files changed

+22
-19
lines changed

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

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,8 @@ The `jsx-*` rules check for issues exclusive to JSX syntax, which are absent fro
3535
| [`jsx-no-duplicate-props`](./jsx-no-duplicate-props) | 1️⃣ | | Disallow duplicate props in JSX elements | |
3636
| [`jsx-no-iife`](./jsx-no-iife) | 0️⃣ | `🧪` | Disallows `IIFE` in JSX elements | |
3737
| [`jsx-no-undef`](./jsx-no-undef) | 0️⃣ | | Disallow undefined variables in JSX elements | |
38+
| [`jsx-shorthand-boolean`](./jsx-shorthand-boolean) | 0️⃣ | `🔧` `⚙️` | Enforces the use of shorthand syntax for boolean attributes | |
39+
| [`jsx-shorthand-fragment`](./jsx-shorthand-fragment) | 0️⃣ | `🔧` `⚙️` | Enforces the use of shorthand syntax for fragments | |
3840
| [`jsx-uses-react`](./jsx-uses-react) | 1️⃣ | | Marks React variables as used when JSX is used | |
3941
| [`jsx-uses-vars`](./jsx-uses-vars) | 1️⃣ | | Marks variables used in JSX elements as used | |
4042
| [`no-access-state-in-setstate`](./no-access-state-in-setstate) | 2️⃣ | | Disallow accessing `this.state` inside `setState` calls | |
@@ -72,6 +74,10 @@ The `jsx-*` rules check for issues exclusive to JSX syntax, which are absent fro
7274
| [`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 | |
7375
| [`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 | |
7476
| [`no-string-refs`](./no-string-refs) | 2️⃣ | `🔄` | Replaces string refs with callback refs | >=16.3.0 |
77+
| [`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 | |
7581
| [`no-unsafe-component-will-mount`](./no-unsafe-component-will-mount) | 1️⃣ | | Warns the usage of `UNSAFE_componentWillMount` in class components | |
7682
| [`no-unsafe-component-will-receive-props`](./no-unsafe-component-will-receive-props) | 1️⃣ | | Warns the usage of `UNSAFE_componentWillReceiveProps` in class components | |
7783
| [`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
8591
| [`prefer-destructuring-assignment`](./prefer-destructuring-assignment) | 0️⃣ | | Enforces destructuring assignment for component props and context | |
8692
| [`prefer-react-namespace-import`](./prefer-react-namespace-import) | 0️⃣ | `🔧` | Enforces React is imported via a namespace import | |
8793
| [`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 | |
90-
| [`avoid-shorthand-boolean`](./avoid-shorthand-boolean) | 0️⃣ | `🔧` | Enforces explicit boolean values for boolean attributes | |
91-
| [`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` | |
9295

9396
## DOM Rules
9497

examples/vite-react-dom-app/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
"@tsconfig/vite-react": "^6.3.5",
2424
"@types/react": "^19.1.6",
2525
"@types/react-dom": "^19.1.5",
26-
"@vitejs/plugin-react": "^4.5.0",
26+
"@vitejs/plugin-react": "^4.5.1",
2727
"eslint": "^9.28.0",
2828
"eslint-plugin-react-hooks": "^5.2.0",
2929
"eslint-plugin-react-refresh": "^0.4.20",

examples/vite-react-dom-js-app/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
"@eslint/js": "^9.28.0",
2121
"@types/react": "^19.1.6",
2222
"@types/react-dom": "^19.1.5",
23-
"@vitejs/plugin-react": "^4.5.0",
23+
"@vitejs/plugin-react": "^4.5.1",
2424
"eslint": "^9.28.0",
2525
"eslint-plugin-react-hooks": "^5.2.0",
2626
"eslint-plugin-react-refresh": "^0.4.20",

examples/vite-react-dom-js-with-babel-eslint-parser-app/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
"@types/babel__preset-env": "~7.10.0",
2626
"@types/react": "^19.1.6",
2727
"@types/react-dom": "^19.1.5",
28-
"@vitejs/plugin-react": "^4.5.0",
28+
"@vitejs/plugin-react": "^4.5.1",
2929
"eslint": "^9.28.0",
3030
"eslint-plugin-react-debug": "workspace:*",
3131
"eslint-plugin-react-dom": "workspace:*",

examples/vite-react-dom-with-ts-blank-eslint-parser-app/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
"@tsconfig/vite-react": "^6.3.5",
2626
"@types/react": "^19.1.6",
2727
"@types/react-dom": "^19.1.5",
28-
"@vitejs/plugin-react": "^4.5.0",
28+
"@vitejs/plugin-react": "^4.5.1",
2929
"eslint": "^9.28.0",
3030
"eslint-plugin-react-hooks": "^5.2.0",
3131
"eslint-plugin-react-refresh": "^0.4.20",

pnpm-lock.yaml

Lines changed: 11 additions & 11 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)