eslint-plugin-react-dom 1.27.1-next.3 → 1.27.1-next.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +21 -25
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +7 -7
package/README.md
CHANGED
|
@@ -12,35 +12,31 @@ npm install --save-dev eslint-plugin-react-dom
|
|
|
12
12
|
## Setup
|
|
13
13
|
|
|
14
14
|
```js
|
|
15
|
-
//
|
|
15
|
+
// eslint.config.js
|
|
16
16
|
|
|
17
|
+
// @ts-check
|
|
17
18
|
import js from "@eslint/js";
|
|
18
|
-
import
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
"react-dom/no-missing-button-type": "warn",
|
|
33
|
-
"react-dom/no-missing-iframe-sandbox": "warn",
|
|
34
|
-
"react-dom/no-namespace": "error",
|
|
35
|
-
"react-dom/no-render-return-value": "error",
|
|
36
|
-
"react-dom/no-script-url": "warn",
|
|
37
|
-
"react-dom/no-unknown-property": "warn",
|
|
38
|
-
"react-dom/no-unsafe-iframe-sandbox": "warn",
|
|
39
|
-
"react-dom/no-unsafe-target-blank": "warn",
|
|
40
|
-
"react-dom/no-void-elements-with-children": "warn",
|
|
19
|
+
import reactDom from "eslint-plugin-react-dom";
|
|
20
|
+
import tseslint from "typescript-eslint";
|
|
21
|
+
|
|
22
|
+
export default tseslint.config({
|
|
23
|
+
files: ["**/*.ts", "**/*.tsx"],
|
|
24
|
+
extends: [
|
|
25
|
+
js.configs.recommended,
|
|
26
|
+
tseslint.configs.recommended,
|
|
27
|
+
reactDom.configs.recommended,
|
|
28
|
+
],
|
|
29
|
+
languageOptions: {
|
|
30
|
+
parser: tseslint.parser,
|
|
31
|
+
parserOptions: {
|
|
32
|
+
projectService: true,
|
|
41
33
|
},
|
|
42
34
|
},
|
|
43
|
-
|
|
35
|
+
rules: {
|
|
36
|
+
// Put rules you want to override here
|
|
37
|
+
"react-dom/no-dangerously-set-innerhtml": "warn",
|
|
38
|
+
},
|
|
39
|
+
});
|
|
44
40
|
```
|
|
45
41
|
|
|
46
42
|
## Rules
|
package/dist/index.js
CHANGED
package/dist/index.mjs
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "eslint-plugin-react-dom",
|
|
3
|
-
"version": "1.27.1-next.
|
|
3
|
+
"version": "1.27.1-next.4",
|
|
4
4
|
"description": "ESLint React's ESLint plugin for React DOM related rules.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"react",
|
|
@@ -49,12 +49,12 @@
|
|
|
49
49
|
"compare-versions": "^6.1.1",
|
|
50
50
|
"string-ts": "^2.2.1",
|
|
51
51
|
"ts-pattern": "^5.6.2",
|
|
52
|
-
"@eslint-react/
|
|
53
|
-
"@eslint-react/eff": "1.27.1-next.
|
|
54
|
-
"@eslint-react/jsx": "1.27.1-next.
|
|
55
|
-
"@eslint-react/
|
|
56
|
-
"@eslint-react/shared": "1.27.1-next.
|
|
57
|
-
"@eslint-react/
|
|
52
|
+
"@eslint-react/core": "1.27.1-next.4",
|
|
53
|
+
"@eslint-react/eff": "1.27.1-next.4",
|
|
54
|
+
"@eslint-react/jsx": "1.27.1-next.4",
|
|
55
|
+
"@eslint-react/var": "1.27.1-next.4",
|
|
56
|
+
"@eslint-react/shared": "1.27.1-next.4",
|
|
57
|
+
"@eslint-react/ast": "1.27.1-next.4"
|
|
58
58
|
},
|
|
59
59
|
"devDependencies": {
|
|
60
60
|
"@types/react": "^19.0.10",
|