eslint-plugin-react-x 1.17.2 → 1.17.3-beta.1
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/dist/index.mjs +2 -2
- 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.17.
|
|
45
|
+
var version = "1.17.3-beta.1";
|
|
46
46
|
var createRule = shared.createRuleForPlugin("x");
|
|
47
47
|
|
|
48
48
|
// src/rules/avoid-shorthand-boolean.ts
|
|
@@ -343,7 +343,7 @@ function isUsingReactChildren(node, context) {
|
|
|
343
343
|
const initialScope = context.sourceCode.getScope(node);
|
|
344
344
|
if (callee.object.type === types.AST_NODE_TYPES.Identifier && callee.object.name === "Children") return true;
|
|
345
345
|
if (callee.object.type === types.AST_NODE_TYPES.MemberExpression && "name" in callee.object.object) {
|
|
346
|
-
return core.isInitializedFromReact(callee.object.object.name, initialScope, settings);
|
|
346
|
+
return core.isInitializedFromReact(callee.object.object.name, initialScope, { ...settings, strictImportCheck: true });
|
|
347
347
|
}
|
|
348
348
|
return false;
|
|
349
349
|
}
|
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.17.
|
|
18
|
+
var version = "1.17.3-beta.1";
|
|
19
19
|
var createRule = createRuleForPlugin("x");
|
|
20
20
|
|
|
21
21
|
// src/rules/avoid-shorthand-boolean.ts
|
|
@@ -316,7 +316,7 @@ function isUsingReactChildren(node, context) {
|
|
|
316
316
|
const initialScope = context.sourceCode.getScope(node);
|
|
317
317
|
if (callee.object.type === AST_NODE_TYPES.Identifier && callee.object.name === "Children") return true;
|
|
318
318
|
if (callee.object.type === AST_NODE_TYPES.MemberExpression && "name" in callee.object.object) {
|
|
319
|
-
return isInitializedFromReact(callee.object.object.name, initialScope, settings);
|
|
319
|
+
return isInitializedFromReact(callee.object.object.name, initialScope, { ...settings, strictImportCheck: true });
|
|
320
320
|
}
|
|
321
321
|
return false;
|
|
322
322
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "eslint-plugin-react-x",
|
|
3
|
-
"version": "1.17.
|
|
3
|
+
"version": "1.17.3-beta.1",
|
|
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
|
"eslint",
|
|
@@ -49,13 +49,13 @@
|
|
|
49
49
|
"compare-versions": "^6.1.1",
|
|
50
50
|
"is-immutable-type": "^5.0.0",
|
|
51
51
|
"ts-pattern": "^5.5.0",
|
|
52
|
-
"@eslint-react/ast": "1.17.
|
|
53
|
-
"@eslint-react/core": "1.17.
|
|
54
|
-
"@eslint-react/jsx": "1.17.
|
|
55
|
-
"@eslint-react/shared": "1.17.
|
|
56
|
-
"@eslint-react/
|
|
57
|
-
"@eslint-react/var": "1.17.
|
|
58
|
-
"@eslint-react/
|
|
52
|
+
"@eslint-react/ast": "1.17.3-beta.1",
|
|
53
|
+
"@eslint-react/core": "1.17.3-beta.1",
|
|
54
|
+
"@eslint-react/jsx": "1.17.3-beta.1",
|
|
55
|
+
"@eslint-react/shared": "1.17.3-beta.1",
|
|
56
|
+
"@eslint-react/types": "1.17.3-beta.1",
|
|
57
|
+
"@eslint-react/var": "1.17.3-beta.1",
|
|
58
|
+
"@eslint-react/tools": "1.17.3-beta.1"
|
|
59
59
|
},
|
|
60
60
|
"devDependencies": {
|
|
61
61
|
"@types/react": "^18.3.12",
|