eslint-plugin-react-x 1.24.0-next.15 → 1.24.0-next.17
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 +1 -5
- package/dist/index.mjs +1 -5
- package/package.json +8 -8
package/dist/index.js
CHANGED
|
@@ -42,7 +42,7 @@ var ts__default = /*#__PURE__*/_interopDefault(ts);
|
|
|
42
42
|
|
|
43
43
|
// package.json
|
|
44
44
|
var name = "eslint-plugin-react-x";
|
|
45
|
-
var version = "1.24.0-next.
|
|
45
|
+
var version = "1.24.0-next.17";
|
|
46
46
|
var createRule = shared.createRuleForPlugin("x");
|
|
47
47
|
|
|
48
48
|
// src/rules/avoid-shorthand-boolean.ts
|
|
@@ -691,7 +691,6 @@ var no_class_component_default = createRule({
|
|
|
691
691
|
messageId: "noClassComponent",
|
|
692
692
|
node: component,
|
|
693
693
|
data: {
|
|
694
|
-
// eslint-disable-next-line eslint-plugin/no-unused-placeholders
|
|
695
694
|
name: name2
|
|
696
695
|
}
|
|
697
696
|
});
|
|
@@ -3165,9 +3164,7 @@ var prefer_shorthand_fragment_default = createRule({
|
|
|
3165
3164
|
return [];
|
|
3166
3165
|
}
|
|
3167
3166
|
return [
|
|
3168
|
-
// eslint-disable-next-line eslint-plugin/prefer-replace-text
|
|
3169
3167
|
fixer.replaceTextRange([openingElement.range[0], openingElement.range[1]], "<>"),
|
|
3170
|
-
// eslint-disable-next-line eslint-plugin/prefer-replace-text
|
|
3171
3168
|
fixer.replaceTextRange([closingElement.range[0], closingElement.range[1]], "</>")
|
|
3172
3169
|
];
|
|
3173
3170
|
}
|
|
@@ -3183,7 +3180,6 @@ var use_jsx_vars_default = createRule({
|
|
|
3183
3180
|
meta: {
|
|
3184
3181
|
type: "problem",
|
|
3185
3182
|
docs: {
|
|
3186
|
-
// eslint-disable-next-line eslint-plugin/require-meta-docs-description
|
|
3187
3183
|
description: "helpes `eslint/no-unused-vars` to correctly mark JSX variables as used.",
|
|
3188
3184
|
[Symbol.for("rule_features")]: RULE_FEATURES49
|
|
3189
3185
|
},
|
package/dist/index.mjs
CHANGED
|
@@ -15,7 +15,7 @@ import { getTypeImmutability, isUnknown, isImmutable, isReadonlyShallow, isReado
|
|
|
15
15
|
|
|
16
16
|
// package.json
|
|
17
17
|
var name = "eslint-plugin-react-x";
|
|
18
|
-
var version = "1.24.0-next.
|
|
18
|
+
var version = "1.24.0-next.17";
|
|
19
19
|
var createRule = createRuleForPlugin("x");
|
|
20
20
|
|
|
21
21
|
// src/rules/avoid-shorthand-boolean.ts
|
|
@@ -664,7 +664,6 @@ var no_class_component_default = createRule({
|
|
|
664
664
|
messageId: "noClassComponent",
|
|
665
665
|
node: component,
|
|
666
666
|
data: {
|
|
667
|
-
// eslint-disable-next-line eslint-plugin/no-unused-placeholders
|
|
668
667
|
name: name2
|
|
669
668
|
}
|
|
670
669
|
});
|
|
@@ -3138,9 +3137,7 @@ var prefer_shorthand_fragment_default = createRule({
|
|
|
3138
3137
|
return [];
|
|
3139
3138
|
}
|
|
3140
3139
|
return [
|
|
3141
|
-
// eslint-disable-next-line eslint-plugin/prefer-replace-text
|
|
3142
3140
|
fixer.replaceTextRange([openingElement.range[0], openingElement.range[1]], "<>"),
|
|
3143
|
-
// eslint-disable-next-line eslint-plugin/prefer-replace-text
|
|
3144
3141
|
fixer.replaceTextRange([closingElement.range[0], closingElement.range[1]], "</>")
|
|
3145
3142
|
];
|
|
3146
3143
|
}
|
|
@@ -3156,7 +3153,6 @@ var use_jsx_vars_default = createRule({
|
|
|
3156
3153
|
meta: {
|
|
3157
3154
|
type: "problem",
|
|
3158
3155
|
docs: {
|
|
3159
|
-
// eslint-disable-next-line eslint-plugin/require-meta-docs-description
|
|
3160
3156
|
description: "helpes `eslint/no-unused-vars` to correctly mark JSX variables as used.",
|
|
3161
3157
|
[Symbol.for("rule_features")]: RULE_FEATURES49
|
|
3162
3158
|
},
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "eslint-plugin-react-x",
|
|
3
|
-
"version": "1.24.0-next.
|
|
3
|
+
"version": "1.24.0-next.17",
|
|
4
4
|
"description": "A set of composable ESLint rules for libraries and frameworks that use React as a UI runtime.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"react",
|
|
@@ -47,13 +47,13 @@
|
|
|
47
47
|
"compare-versions": "^6.1.1",
|
|
48
48
|
"is-immutable-type": "^5.0.1",
|
|
49
49
|
"string-ts": "^2.2.0",
|
|
50
|
-
"ts-pattern": "^5.6.
|
|
51
|
-
"@eslint-react/
|
|
52
|
-
"@eslint-react/
|
|
53
|
-
"@eslint-react/jsx": "1.24.0-next.
|
|
54
|
-
"@eslint-react/
|
|
55
|
-
"@eslint-react/var": "1.24.0-next.
|
|
56
|
-
"@eslint-react/
|
|
50
|
+
"ts-pattern": "^5.6.1",
|
|
51
|
+
"@eslint-react/core": "1.24.0-next.17",
|
|
52
|
+
"@eslint-react/eff": "1.24.0-next.17",
|
|
53
|
+
"@eslint-react/jsx": "1.24.0-next.17",
|
|
54
|
+
"@eslint-react/shared": "1.24.0-next.17",
|
|
55
|
+
"@eslint-react/var": "1.24.0-next.17",
|
|
56
|
+
"@eslint-react/ast": "1.24.0-next.17"
|
|
57
57
|
},
|
|
58
58
|
"devDependencies": {
|
|
59
59
|
"@types/react": "^19.0.7",
|