eslint-plugin-react-x 1.21.1-next.1 → 1.22.0-beta.0
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 +2 -2
- package/dist/index.d.mts +6 -2
- package/dist/index.d.ts +6 -2
- package/dist/index.js +264 -261
- package/dist/index.mjs +264 -261
- package/package.json +9 -9
package/README.md
CHANGED
|
@@ -30,8 +30,6 @@ export default [
|
|
|
30
30
|
rules: {
|
|
31
31
|
// react-x recommended rules
|
|
32
32
|
"react-x/ensure-forward-ref-using-ref": "warn",
|
|
33
|
-
"react-x/jsx-no-duplicate-props": "warn",
|
|
34
|
-
"react-x/jsx-uses-vars": "warn",
|
|
35
33
|
"react-x/no-access-state-in-setstate": "error",
|
|
36
34
|
"react-x/no-array-index-key": "warn",
|
|
37
35
|
"react-x/no-children-count": "warn",
|
|
@@ -48,6 +46,7 @@ export default [
|
|
|
48
46
|
"react-x/no-create-ref": "error",
|
|
49
47
|
"react-x/no-default-props": "error",
|
|
50
48
|
"react-x/no-direct-mutation-state": "error",
|
|
49
|
+
"react-x/no-duplicate-jsx-props": "warn",
|
|
51
50
|
"react-x/no-duplicate-key": "error",
|
|
52
51
|
"react-x/no-forward-ref": "warn",
|
|
53
52
|
"react-x/no-implicit-key": "warn",
|
|
@@ -66,6 +65,7 @@ export default [
|
|
|
66
65
|
"react-x/no-unstable-default-props": "warn",
|
|
67
66
|
"react-x/no-unused-class-component-members": "warn",
|
|
68
67
|
"react-x/no-unused-state": "warn",
|
|
68
|
+
"react-x/use-jsx-vars": "warn",
|
|
69
69
|
},
|
|
70
70
|
},
|
|
71
71
|
];
|
package/dist/index.d.mts
CHANGED
|
@@ -17,8 +17,6 @@ declare const _default: {
|
|
|
17
17
|
"avoid-shorthand-boolean": _typescript_eslint_utils_ts_eslint.RuleModule<"avoidShorthandBoolean", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
18
18
|
"avoid-shorthand-fragment": _typescript_eslint_utils_ts_eslint.RuleModule<"avoidShorthandFragment", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
19
19
|
"ensure-forward-ref-using-ref": _typescript_eslint_utils_ts_eslint.RuleModule<"ensureForwardRefUsingRef", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
20
|
-
"jsx-no-duplicate-props": _typescript_eslint_utils_ts_eslint.RuleModule<"jsxNoDuplicateProps", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
21
|
-
"jsx-uses-vars": _typescript_eslint_utils_ts_eslint.RuleModule<"jsxUsesVars", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
22
20
|
"no-access-state-in-setstate": _typescript_eslint_utils_ts_eslint.RuleModule<"noAccessStateInSetstate", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
23
21
|
"no-array-index-key": _typescript_eslint_utils_ts_eslint.RuleModule<"noArrayIndexKey", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
24
22
|
"no-children-count": _typescript_eslint_utils_ts_eslint.RuleModule<"noChildrenCount", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
@@ -38,6 +36,7 @@ declare const _default: {
|
|
|
38
36
|
"no-create-ref": _typescript_eslint_utils_ts_eslint.RuleModule<"noCreateRef", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
39
37
|
"no-default-props": _typescript_eslint_utils_ts_eslint.RuleModule<"noDefaultProps", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
40
38
|
"no-direct-mutation-state": _typescript_eslint_utils_ts_eslint.RuleModule<"noDirectMutationState", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
39
|
+
"no-duplicate-jsx-props": _typescript_eslint_utils_ts_eslint.RuleModule<"noDuplicateJsxProps", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
41
40
|
"no-duplicate-key": _typescript_eslint_utils_ts_eslint.RuleModule<"noDuplicateKey", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
42
41
|
"no-forward-ref": _typescript_eslint_utils_ts_eslint.RuleModule<"noForwardRef", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
43
42
|
"no-implicit-key": _typescript_eslint_utils_ts_eslint.RuleModule<"noImplicitKey", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
@@ -66,6 +65,11 @@ declare const _default: {
|
|
|
66
65
|
"prefer-read-only-props": _typescript_eslint_utils_ts_eslint.RuleModule<"preferReadOnlyProps", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
67
66
|
"prefer-shorthand-boolean": _typescript_eslint_utils_ts_eslint.RuleModule<"preferShorthandBoolean", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
68
67
|
"prefer-shorthand-fragment": _typescript_eslint_utils_ts_eslint.RuleModule<"preferShorthandFragment", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
68
|
+
"use-jsx-vars": _typescript_eslint_utils_ts_eslint.RuleModule<"useJsxVars", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
69
|
+
/** @deprecated Use `no-duplicate-jsx-props` instead. */
|
|
70
|
+
"jsx-no-duplicate-props": _typescript_eslint_utils_ts_eslint.RuleModule<"noDuplicateJsxProps", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
71
|
+
/** @deprecated Use `use-jsx-vars` instead. */
|
|
72
|
+
"jsx-uses-vars": _typescript_eslint_utils_ts_eslint.RuleModule<"useJsxVars", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
69
73
|
/** @deprecated Use `no-complex-conditional-rendering` instead. */
|
|
70
74
|
"no-complicated-conditional-rendering": _typescript_eslint_utils_ts_eslint.RuleModule<"noComplexConditionalRendering", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
71
75
|
};
|
package/dist/index.d.ts
CHANGED
|
@@ -17,8 +17,6 @@ declare const _default: {
|
|
|
17
17
|
"avoid-shorthand-boolean": _typescript_eslint_utils_ts_eslint.RuleModule<"avoidShorthandBoolean", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
18
18
|
"avoid-shorthand-fragment": _typescript_eslint_utils_ts_eslint.RuleModule<"avoidShorthandFragment", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
19
19
|
"ensure-forward-ref-using-ref": _typescript_eslint_utils_ts_eslint.RuleModule<"ensureForwardRefUsingRef", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
20
|
-
"jsx-no-duplicate-props": _typescript_eslint_utils_ts_eslint.RuleModule<"jsxNoDuplicateProps", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
21
|
-
"jsx-uses-vars": _typescript_eslint_utils_ts_eslint.RuleModule<"jsxUsesVars", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
22
20
|
"no-access-state-in-setstate": _typescript_eslint_utils_ts_eslint.RuleModule<"noAccessStateInSetstate", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
23
21
|
"no-array-index-key": _typescript_eslint_utils_ts_eslint.RuleModule<"noArrayIndexKey", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
24
22
|
"no-children-count": _typescript_eslint_utils_ts_eslint.RuleModule<"noChildrenCount", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
@@ -38,6 +36,7 @@ declare const _default: {
|
|
|
38
36
|
"no-create-ref": _typescript_eslint_utils_ts_eslint.RuleModule<"noCreateRef", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
39
37
|
"no-default-props": _typescript_eslint_utils_ts_eslint.RuleModule<"noDefaultProps", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
40
38
|
"no-direct-mutation-state": _typescript_eslint_utils_ts_eslint.RuleModule<"noDirectMutationState", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
39
|
+
"no-duplicate-jsx-props": _typescript_eslint_utils_ts_eslint.RuleModule<"noDuplicateJsxProps", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
41
40
|
"no-duplicate-key": _typescript_eslint_utils_ts_eslint.RuleModule<"noDuplicateKey", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
42
41
|
"no-forward-ref": _typescript_eslint_utils_ts_eslint.RuleModule<"noForwardRef", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
43
42
|
"no-implicit-key": _typescript_eslint_utils_ts_eslint.RuleModule<"noImplicitKey", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
@@ -66,6 +65,11 @@ declare const _default: {
|
|
|
66
65
|
"prefer-read-only-props": _typescript_eslint_utils_ts_eslint.RuleModule<"preferReadOnlyProps", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
67
66
|
"prefer-shorthand-boolean": _typescript_eslint_utils_ts_eslint.RuleModule<"preferShorthandBoolean", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
68
67
|
"prefer-shorthand-fragment": _typescript_eslint_utils_ts_eslint.RuleModule<"preferShorthandFragment", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
68
|
+
"use-jsx-vars": _typescript_eslint_utils_ts_eslint.RuleModule<"useJsxVars", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
69
|
+
/** @deprecated Use `no-duplicate-jsx-props` instead. */
|
|
70
|
+
"jsx-no-duplicate-props": _typescript_eslint_utils_ts_eslint.RuleModule<"noDuplicateJsxProps", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
71
|
+
/** @deprecated Use `use-jsx-vars` instead. */
|
|
72
|
+
"jsx-uses-vars": _typescript_eslint_utils_ts_eslint.RuleModule<"useJsxVars", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
69
73
|
/** @deprecated Use `no-complex-conditional-rendering` instead. */
|
|
70
74
|
"no-complicated-conditional-rendering": _typescript_eslint_utils_ts_eslint.RuleModule<"noComplexConditionalRendering", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
71
75
|
};
|