eslint-plugin-react-x 1.29.1-beta.0 → 1.29.1-beta.2
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 +4 -4
- package/dist/index.mjs +4 -4
- package/package.json +7 -7
package/dist/index.js
CHANGED
|
@@ -137,7 +137,7 @@ var settings3 = {
|
|
|
137
137
|
|
|
138
138
|
// package.json
|
|
139
139
|
var name4 = "eslint-plugin-react-x";
|
|
140
|
-
var version = "1.29.1-beta.
|
|
140
|
+
var version = "1.29.1-beta.2";
|
|
141
141
|
var createRule = shared.createRuleForPlugin("x");
|
|
142
142
|
|
|
143
143
|
// src/rules/avoid-shorthand-boolean.ts
|
|
@@ -450,11 +450,11 @@ var no_array_index_key_default = createRule({
|
|
|
450
450
|
meta: {
|
|
451
451
|
type: "problem",
|
|
452
452
|
docs: {
|
|
453
|
-
description: "disallow using
|
|
453
|
+
description: "disallow using an item's index in the array as its key",
|
|
454
454
|
[Symbol.for("rule_features")]: RULE_FEATURES5
|
|
455
455
|
},
|
|
456
456
|
messages: {
|
|
457
|
-
noArrayIndexKey: "Do not use
|
|
457
|
+
noArrayIndexKey: "Do not use item index in the array as its key."
|
|
458
458
|
},
|
|
459
459
|
schema: []
|
|
460
460
|
},
|
|
@@ -3036,7 +3036,7 @@ var no_use_context_default = createRule({
|
|
|
3036
3036
|
}
|
|
3037
3037
|
context.report({
|
|
3038
3038
|
messageId: "noUseContext",
|
|
3039
|
-
node,
|
|
3039
|
+
node: node.callee,
|
|
3040
3040
|
fix(fixer) {
|
|
3041
3041
|
switch (node.callee.type) {
|
|
3042
3042
|
case types.AST_NODE_TYPES.Identifier:
|
package/dist/index.mjs
CHANGED
|
@@ -110,7 +110,7 @@ var settings3 = {
|
|
|
110
110
|
|
|
111
111
|
// package.json
|
|
112
112
|
var name4 = "eslint-plugin-react-x";
|
|
113
|
-
var version = "1.29.1-beta.
|
|
113
|
+
var version = "1.29.1-beta.2";
|
|
114
114
|
var createRule = createRuleForPlugin("x");
|
|
115
115
|
|
|
116
116
|
// src/rules/avoid-shorthand-boolean.ts
|
|
@@ -423,11 +423,11 @@ var no_array_index_key_default = createRule({
|
|
|
423
423
|
meta: {
|
|
424
424
|
type: "problem",
|
|
425
425
|
docs: {
|
|
426
|
-
description: "disallow using
|
|
426
|
+
description: "disallow using an item's index in the array as its key",
|
|
427
427
|
[Symbol.for("rule_features")]: RULE_FEATURES5
|
|
428
428
|
},
|
|
429
429
|
messages: {
|
|
430
|
-
noArrayIndexKey: "Do not use
|
|
430
|
+
noArrayIndexKey: "Do not use item index in the array as its key."
|
|
431
431
|
},
|
|
432
432
|
schema: []
|
|
433
433
|
},
|
|
@@ -3009,7 +3009,7 @@ var no_use_context_default = createRule({
|
|
|
3009
3009
|
}
|
|
3010
3010
|
context.report({
|
|
3011
3011
|
messageId: "noUseContext",
|
|
3012
|
-
node,
|
|
3012
|
+
node: node.callee,
|
|
3013
3013
|
fix(fixer) {
|
|
3014
3014
|
switch (node.callee.type) {
|
|
3015
3015
|
case AST_NODE_TYPES.Identifier:
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "eslint-plugin-react-x",
|
|
3
|
-
"version": "1.29.1-beta.
|
|
3
|
+
"version": "1.29.1-beta.2",
|
|
4
4
|
"description": "A set of composable linting rules for libraries and frameworks that use React as a UI runtime.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"react",
|
|
@@ -50,12 +50,12 @@
|
|
|
50
50
|
"is-immutable-type": "^5.0.1",
|
|
51
51
|
"string-ts": "^2.2.1",
|
|
52
52
|
"ts-pattern": "^5.6.2",
|
|
53
|
-
"@eslint-react/
|
|
54
|
-
"@eslint-react/
|
|
55
|
-
"@eslint-react/jsx": "1.29.1-beta.
|
|
56
|
-
"@eslint-react/
|
|
57
|
-
"@eslint-react/
|
|
58
|
-
"@eslint-react/
|
|
53
|
+
"@eslint-react/ast": "1.29.1-beta.2",
|
|
54
|
+
"@eslint-react/core": "1.29.1-beta.2",
|
|
55
|
+
"@eslint-react/jsx": "1.29.1-beta.2",
|
|
56
|
+
"@eslint-react/eff": "1.29.1-beta.2",
|
|
57
|
+
"@eslint-react/shared": "1.29.1-beta.2",
|
|
58
|
+
"@eslint-react/var": "1.29.1-beta.2"
|
|
59
59
|
},
|
|
60
60
|
"devDependencies": {
|
|
61
61
|
"@types/react": "^19.0.10",
|