Skip to content

Commit aa33a07

Browse files
committed
fix: sync the rules severity between plugins
1 parent ce48bf5 commit aa33a07

File tree

5 files changed

+5
-6
lines changed

5 files changed

+5
-6
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ Linter rules can have false positives, false negatives, and some rules are depen
9393
| [`no-render`](./dom-no-render) | 2️⃣ | `🔄` | Replaces usages of `ReactDom.render()` with `createRoot(node).render()` | >=18.0.0 |
9494
| [`no-render-return-value`](./dom-no-render-return-value) | 2️⃣ | | Disallow the return value of `ReactDOM.render` | |
9595
| [`no-script-url`](./dom-no-script-url) | 1️⃣ | | Disallow `javascript:` URLs as attribute values | |
96-
| [`no-unknown-property`](./dom-no-unknown-property) | 1️⃣ | `🔧` `⚙️` | Disallow unknown `DOM` property | |
96+
| [`no-unknown-property`](./dom-no-unknown-property) | 0️⃣ | `🔧` `⚙️` | Disallow unknown `DOM` property | |
9797
| [`no-unsafe-iframe-sandbox`](./dom-no-unsafe-iframe-sandbox) | 1️⃣ | | Enforces `sandbox` attribute for `iframe` elements is not set to unsafe combinations | |
9898
| [`no-unsafe-target-blank`](./dom-no-unsafe-target-blank) | 1️⃣ | | Disallow `target="_blank"` without `rel="noreferrer noopener"` | |
9999
| [`no-use-form-state`](./dom-no-use-form-state) | 2️⃣ | `🔄` | Replaces usages of `useFormState` with `useActionState` | >=19.0.0 |

packages/plugins/eslint-plugin-react-dom/src/configs/recommended.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ export const rules = {
1515
"react-dom/no-render": "error",
1616
"react-dom/no-render-return-value": "error",
1717
"react-dom/no-script-url": "warn",
18-
"react-dom/no-unknown-property": "warn",
1918
"react-dom/no-unsafe-iframe-sandbox": "warn",
2019
"react-dom/no-unsafe-target-blank": "warn",
2120
"react-dom/no-use-form-state": "error",

packages/plugins/eslint-plugin-react-hooks-extra/src/configs/recommended.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import type { RulePreset } from "@eslint-react/kit";
33
export const name = "react-hooks-extra/recommended";
44

55
export const rules = {
6-
"react-hooks-extra/no-direct-set-state-in-use-effect": "warn",
7-
"react-hooks-extra/no-unnecessary-use-prefix": "warn",
6+
"react-hooks-extra/hooks-extra/no-direct-set-state-in-use-effect": "warn",
7+
"react-hooks-extra/hooks-extra/no-unnecessary-use-prefix": "warn",
8+
"react-hooks-extra/hooks-extra/prefer-use-state-lazy-initialization": "warn",
89
} as const satisfies RulePreset;

packages/plugins/eslint-plugin/src/configs/core.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,6 @@ export const rules = {
4343
"@eslint-react/no-unused-state": "warn",
4444
"@eslint-react/no-use-context": "warn",
4545
"@eslint-react/no-useless-forward-ref": "warn",
46-
"@eslint-react/no-useless-fragment": "warn",
4746
} as const satisfies RulePreset;
4847

4948
export const plugins = {

packages/plugins/eslint-plugin/src/configs/dom.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,13 @@ export const rules = {
99
"@eslint-react/dom/no-dangerously-set-innerhtml-with-children": "error",
1010
"@eslint-react/dom/no-find-dom-node": "error",
1111
"@eslint-react/dom/no-flush-sync": "error",
12+
"@eslint-react/dom/no-hydrate": "error",
1213
"@eslint-react/dom/no-missing-button-type": "warn",
1314
"@eslint-react/dom/no-missing-iframe-sandbox": "warn",
1415
"@eslint-react/dom/no-namespace": "error",
1516
"@eslint-react/dom/no-render": "error",
1617
"@eslint-react/dom/no-render-return-value": "error",
1718
"@eslint-react/dom/no-script-url": "warn",
18-
"@eslint-react/dom/no-unknown-property": "warn",
1919
"@eslint-react/dom/no-unsafe-iframe-sandbox": "warn",
2020
"@eslint-react/dom/no-unsafe-target-blank": "warn",
2121
"@eslint-react/dom/no-use-form-state": "error",

0 commit comments

Comments
 (0)