eslint-plugin-react-x 2.0.6-next.0 → 2.0.6
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/dist/index.js +20 -1
- package/package.json +7 -7
package/dist/index.js
CHANGED
|
@@ -37,6 +37,10 @@ const name$3 = "react-x/recommended";
|
|
|
37
37
|
const rules$2 = {
|
|
38
38
|
"react-x/jsx-no-comment-textnodes": "warn",
|
|
39
39
|
"react-x/jsx-no-duplicate-props": "warn",
|
|
40
|
+
"react-x/jsx-no-iife": "off",
|
|
41
|
+
"react-x/jsx-no-undef": "off",
|
|
42
|
+
"react-x/jsx-shorthand-boolean": "off",
|
|
43
|
+
"react-x/jsx-shorthand-fragment": "off",
|
|
40
44
|
"react-x/jsx-uses-react": "warn",
|
|
41
45
|
"react-x/jsx-uses-vars": "warn",
|
|
42
46
|
"react-x/no-access-state-in-setstate": "error",
|
|
@@ -45,7 +49,9 @@ const rules$2 = {
|
|
|
45
49
|
"react-x/no-children-for-each": "warn",
|
|
46
50
|
"react-x/no-children-map": "warn",
|
|
47
51
|
"react-x/no-children-only": "warn",
|
|
52
|
+
"react-x/no-children-prop": "off",
|
|
48
53
|
"react-x/no-children-to-array": "warn",
|
|
54
|
+
"react-x/no-class-component": "off",
|
|
49
55
|
"react-x/no-clone-element": "warn",
|
|
50
56
|
"react-x/no-component-will-mount": "error",
|
|
51
57
|
"react-x/no-component-will-receive-props": "error",
|
|
@@ -55,9 +61,14 @@ const rules$2 = {
|
|
|
55
61
|
"react-x/no-default-props": "error",
|
|
56
62
|
"react-x/no-direct-mutation-state": "error",
|
|
57
63
|
"react-x/no-duplicate-key": "error",
|
|
64
|
+
"react-x/no-forbidden-props": "off",
|
|
58
65
|
"react-x/no-forward-ref": "warn",
|
|
59
66
|
"react-x/no-implicit-key": "warn",
|
|
67
|
+
"react-x/no-leaked-conditional-rendering": "off",
|
|
68
|
+
"react-x/no-missing-component-display-name": "off",
|
|
69
|
+
"react-x/no-missing-context-display-name": "off",
|
|
60
70
|
"react-x/no-missing-key": "error",
|
|
71
|
+
"react-x/no-misused-capture-owner-stack": "off",
|
|
61
72
|
"react-x/no-nested-component-definitions": "error",
|
|
62
73
|
"react-x/no-nested-lazy-component-declarations": "error",
|
|
63
74
|
"react-x/no-prop-types": "error",
|
|
@@ -66,6 +77,9 @@ const rules$2 = {
|
|
|
66
77
|
"react-x/no-set-state-in-component-did-update": "warn",
|
|
67
78
|
"react-x/no-set-state-in-component-will-update": "warn",
|
|
68
79
|
"react-x/no-string-refs": "error",
|
|
80
|
+
"react-x/no-unnecessary-key": "off",
|
|
81
|
+
"react-x/no-unnecessary-use-callback": "off",
|
|
82
|
+
"react-x/no-unnecessary-use-memo": "off",
|
|
69
83
|
"react-x/no-unnecessary-use-prefix": "warn",
|
|
70
84
|
"react-x/no-unsafe-component-will-mount": "warn",
|
|
71
85
|
"react-x/no-unsafe-component-will-receive-props": "warn",
|
|
@@ -73,9 +87,14 @@ const rules$2 = {
|
|
|
73
87
|
"react-x/no-unstable-context-value": "warn",
|
|
74
88
|
"react-x/no-unstable-default-props": "warn",
|
|
75
89
|
"react-x/no-unused-class-component-members": "warn",
|
|
90
|
+
"react-x/no-unused-props": "off",
|
|
76
91
|
"react-x/no-unused-state": "warn",
|
|
77
92
|
"react-x/no-use-context": "warn",
|
|
78
93
|
"react-x/no-useless-forward-ref": "warn",
|
|
94
|
+
"react-x/no-useless-fragment": "off",
|
|
95
|
+
"react-x/prefer-destructuring-assignment": "off",
|
|
96
|
+
"react-x/prefer-namespace-import": "off",
|
|
97
|
+
"react-x/prefer-read-only-props": "off",
|
|
79
98
|
"react-x/prefer-use-state-lazy-initialization": "warn"
|
|
80
99
|
};
|
|
81
100
|
const settings$2 = { "react-x": DEFAULT_ESLINT_REACT_SETTINGS };
|
|
@@ -115,7 +134,7 @@ const settings = { ...settings$1 };
|
|
|
115
134
|
//#endregion
|
|
116
135
|
//#region package.json
|
|
117
136
|
var name = "eslint-plugin-react-x";
|
|
118
|
-
var version = "2.0.6
|
|
137
|
+
var version = "2.0.6";
|
|
119
138
|
|
|
120
139
|
//#endregion
|
|
121
140
|
//#region src/utils/create-rule.ts
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "eslint-plugin-react-x",
|
|
3
|
-
"version": "2.0.6
|
|
3
|
+
"version": "2.0.6",
|
|
4
4
|
"description": "A set of composable ESLint rules for for libraries and frameworks that use React as a UI runtime.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"react",
|
|
@@ -43,12 +43,12 @@
|
|
|
43
43
|
"string-ts": "^2.2.1",
|
|
44
44
|
"ts-api-utils": "^2.1.0",
|
|
45
45
|
"ts-pattern": "^5.8.0",
|
|
46
|
-
"@eslint-react/ast": "2.0.6
|
|
47
|
-
"@eslint-react/
|
|
48
|
-
"@eslint-react/
|
|
49
|
-
"@eslint-react/
|
|
50
|
-
"@eslint-react/
|
|
51
|
-
"@eslint-react/
|
|
46
|
+
"@eslint-react/ast": "2.0.6",
|
|
47
|
+
"@eslint-react/core": "2.0.6",
|
|
48
|
+
"@eslint-react/eff": "2.0.6",
|
|
49
|
+
"@eslint-react/kit": "2.0.6",
|
|
50
|
+
"@eslint-react/shared": "2.0.6",
|
|
51
|
+
"@eslint-react/var": "2.0.6"
|
|
52
52
|
},
|
|
53
53
|
"devDependencies": {
|
|
54
54
|
"@types/react": "^19.2.0",
|