eslint-plugin-react-x 1.17.3-next.0 → 1.17.3-next.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 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.3-next.0";
45
+ var version = "1.17.3-next.2";
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.3-next.0";
18
+ var version = "1.17.3-next.2";
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-next.0",
3
+ "version": "1.17.3-next.2",
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",
@@ -42,20 +42,20 @@
42
42
  "./package.json"
43
43
  ],
44
44
  "dependencies": {
45
- "@typescript-eslint/scope-manager": "^8.16.0",
46
- "@typescript-eslint/type-utils": "^8.16.0",
47
- "@typescript-eslint/types": "^8.16.0",
48
- "@typescript-eslint/utils": "^8.16.0",
45
+ "@typescript-eslint/scope-manager": "^8.17.0",
46
+ "@typescript-eslint/type-utils": "^8.17.0",
47
+ "@typescript-eslint/types": "^8.17.0",
48
+ "@typescript-eslint/utils": "^8.17.0",
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.3-next.0",
53
- "@eslint-react/core": "1.17.3-next.0",
54
- "@eslint-react/jsx": "1.17.3-next.0",
55
- "@eslint-react/shared": "1.17.3-next.0",
56
- "@eslint-react/tools": "1.17.3-next.0",
57
- "@eslint-react/var": "1.17.3-next.0",
58
- "@eslint-react/types": "1.17.3-next.0"
52
+ "@eslint-react/ast": "1.17.3-next.2",
53
+ "@eslint-react/core": "1.17.3-next.2",
54
+ "@eslint-react/shared": "1.17.3-next.2",
55
+ "@eslint-react/jsx": "1.17.3-next.2",
56
+ "@eslint-react/tools": "1.17.3-next.2",
57
+ "@eslint-react/types": "1.17.3-next.2",
58
+ "@eslint-react/var": "1.17.3-next.2"
59
59
  },
60
60
  "devDependencies": {
61
61
  "@types/react": "^18.3.12",