eslint-plugin-react-x 2.0.0-beta.2 → 2.0.0-beta.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/dist/index.js +14 -7
- package/package.json +7 -7
package/dist/index.js
CHANGED
|
@@ -28,10 +28,12 @@ __export(recommended_exports, {
|
|
|
28
28
|
});
|
|
29
29
|
var name = "react-x/recommended";
|
|
30
30
|
var rules = {
|
|
31
|
-
"react-x/jsx-key-before-spread": "warn",
|
|
32
31
|
"react-x/jsx-no-comment-textnodes": "warn",
|
|
33
32
|
"react-x/jsx-no-duplicate-props": "warn",
|
|
33
|
+
// "react-x/jsx-no-iife": "warn",
|
|
34
34
|
// "react-x/jsx-no-undef": "error",
|
|
35
|
+
// "react-x/jsx-shorthand-boolean": "warn",
|
|
36
|
+
// "react-x/jsx-shorthand-fragment": "warn",
|
|
35
37
|
"react-x/jsx-uses-react": "warn",
|
|
36
38
|
"react-x/jsx-uses-vars": "warn",
|
|
37
39
|
"react-x/no-access-state-in-setstate": "error",
|
|
@@ -44,6 +46,7 @@ var rules = {
|
|
|
44
46
|
"react-x/no-children-to-array": "warn",
|
|
45
47
|
// "react-x/no-class-component": "warn",
|
|
46
48
|
"react-x/no-clone-element": "warn",
|
|
49
|
+
"react-x/no-comment-textnodes": "warn",
|
|
47
50
|
"react-x/no-component-will-mount": "error",
|
|
48
51
|
"react-x/no-component-will-receive-props": "error",
|
|
49
52
|
"react-x/no-component-will-update": "error",
|
|
@@ -51,24 +54,24 @@ var rules = {
|
|
|
51
54
|
"react-x/no-create-ref": "error",
|
|
52
55
|
"react-x/no-default-props": "error",
|
|
53
56
|
"react-x/no-direct-mutation-state": "error",
|
|
54
|
-
|
|
55
|
-
// "react-x/prefer-namespace-import": "warn",
|
|
56
|
-
// "react-x/prefer-read-only-props": "error",
|
|
57
|
-
"react-x/no-duplicate-key": "warn",
|
|
57
|
+
"react-x/no-duplicate-key": "error",
|
|
58
58
|
"react-x/no-forward-ref": "warn",
|
|
59
59
|
"react-x/no-implicit-key": "warn",
|
|
60
|
+
// "react-x/no-leaked-conditional-rendering": "warn",
|
|
60
61
|
// "react-x/no-missing-component-display-name": "warn",
|
|
61
62
|
// "react-x/no-missing-context-display-name": "warn",
|
|
62
63
|
"react-x/no-missing-key": "error",
|
|
63
64
|
// "react-x/no-misused-capture-owner-stack": "error",
|
|
64
65
|
"react-x/no-nested-component-definitions": "error",
|
|
65
|
-
"react-x/no-nested-lazy-component-declarations": "
|
|
66
|
+
"react-x/no-nested-lazy-component-declarations": "error",
|
|
66
67
|
"react-x/no-prop-types": "error",
|
|
67
68
|
"react-x/no-redundant-should-component-update": "error",
|
|
68
69
|
"react-x/no-set-state-in-component-did-mount": "warn",
|
|
69
70
|
"react-x/no-set-state-in-component-did-update": "warn",
|
|
70
71
|
"react-x/no-set-state-in-component-will-update": "warn",
|
|
71
72
|
"react-x/no-string-refs": "error",
|
|
73
|
+
// "react-x/no-unnecessary-use-callback": "warn",
|
|
74
|
+
// "react-x/no-unnecessary-use-memo": "warn",
|
|
72
75
|
"react-x/no-unnecessary-use-prefix": "warn",
|
|
73
76
|
"react-x/no-unsafe-component-will-mount": "warn",
|
|
74
77
|
"react-x/no-unsafe-component-will-receive-props": "warn",
|
|
@@ -79,6 +82,10 @@ var rules = {
|
|
|
79
82
|
"react-x/no-unused-state": "warn",
|
|
80
83
|
"react-x/no-use-context": "warn",
|
|
81
84
|
"react-x/no-useless-forward-ref": "warn",
|
|
85
|
+
// "react-x/no-useless-fragment": "warn",
|
|
86
|
+
// "react-x/prefer-destructuring-assignment": "warn",
|
|
87
|
+
// "react-x/prefer-namespace-import": "warn",
|
|
88
|
+
// "react-x/prefer-read-only-props": "error",
|
|
82
89
|
"react-x/prefer-use-state-lazy-initialization": "warn"
|
|
83
90
|
};
|
|
84
91
|
var settings = {
|
|
@@ -125,7 +132,7 @@ var settings3 = {
|
|
|
125
132
|
|
|
126
133
|
// package.json
|
|
127
134
|
var name4 = "eslint-plugin-react-x";
|
|
128
|
-
var version = "2.0.0-beta.
|
|
135
|
+
var version = "2.0.0-beta.4";
|
|
129
136
|
var createRule = ESLintUtils.RuleCreator(getDocsUrl("x"));
|
|
130
137
|
|
|
131
138
|
// src/rules/jsx-key-before-spread.ts
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "eslint-plugin-react-x",
|
|
3
|
-
"version": "2.0.0-beta.
|
|
3
|
+
"version": "2.0.0-beta.4",
|
|
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",
|
|
@@ -42,12 +42,12 @@
|
|
|
42
42
|
"is-immutable-type": "^5.0.1",
|
|
43
43
|
"string-ts": "^2.2.1",
|
|
44
44
|
"ts-pattern": "^5.7.1",
|
|
45
|
-
"@eslint-react/ast": "2.0.0-beta.
|
|
46
|
-
"@eslint-react/
|
|
47
|
-
"@eslint-react/
|
|
48
|
-
"@eslint-react/
|
|
49
|
-
"@eslint-react/var": "2.0.0-beta.
|
|
50
|
-
"@eslint-react/
|
|
45
|
+
"@eslint-react/ast": "2.0.0-beta.4",
|
|
46
|
+
"@eslint-react/eff": "2.0.0-beta.4",
|
|
47
|
+
"@eslint-react/kit": "2.0.0-beta.4",
|
|
48
|
+
"@eslint-react/core": "2.0.0-beta.4",
|
|
49
|
+
"@eslint-react/var": "2.0.0-beta.4",
|
|
50
|
+
"@eslint-react/shared": "2.0.0-beta.4"
|
|
51
51
|
},
|
|
52
52
|
"devDependencies": {
|
|
53
53
|
"@types/react": "^19.1.8",
|