eslint-plugin-react-x 2.0.0-beta.21 → 2.0.0-beta.23
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 +2 -2
- package/package.json +7 -7
package/dist/index.js
CHANGED
|
@@ -132,7 +132,7 @@ var settings3 = {
|
|
|
132
132
|
|
|
133
133
|
// package.json
|
|
134
134
|
var name4 = "eslint-plugin-react-x";
|
|
135
|
-
var version = "2.0.0-beta.
|
|
135
|
+
var version = "2.0.0-beta.23";
|
|
136
136
|
var createRule = ESLintUtils.RuleCreator(getDocsUrl("x"));
|
|
137
137
|
|
|
138
138
|
// src/rules/jsx-key-before-spread.ts
|
|
@@ -3643,7 +3643,7 @@ function trimLikeReact(text) {
|
|
|
3643
3643
|
}
|
|
3644
3644
|
function checkNode(context, node, allowExpressions) {
|
|
3645
3645
|
const initialScope = context.sourceCode.getScope(node);
|
|
3646
|
-
if (ER27.
|
|
3646
|
+
if (node.type === AST_NODE_TYPES.JSXElement && ER27.hasAttribute(context, "key", node.openingElement.attributes, initialScope)) {
|
|
3647
3647
|
return;
|
|
3648
3648
|
}
|
|
3649
3649
|
if (ER27.isHostElement(context, node.parent)) {
|
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.23",
|
|
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.8.0",
|
|
45
|
-
"@eslint-react/ast": "2.0.0-beta.
|
|
46
|
-
"@eslint-react/
|
|
47
|
-
"@eslint-react/
|
|
48
|
-
"@eslint-react/
|
|
49
|
-
"@eslint-react/
|
|
50
|
-
"@eslint-react/
|
|
45
|
+
"@eslint-react/ast": "2.0.0-beta.23",
|
|
46
|
+
"@eslint-react/core": "2.0.0-beta.23",
|
|
47
|
+
"@eslint-react/eff": "2.0.0-beta.23",
|
|
48
|
+
"@eslint-react/shared": "2.0.0-beta.23",
|
|
49
|
+
"@eslint-react/var": "2.0.0-beta.23",
|
|
50
|
+
"@eslint-react/kit": "2.0.0-beta.23"
|
|
51
51
|
},
|
|
52
52
|
"devDependencies": {
|
|
53
53
|
"@types/react": "^19.1.9",
|