eslint-plugin-react-x 1.23.2-next.2 → 1.23.2-next.3

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.23.2-next.2";
45
+ var version = "1.23.2-next.3";
46
46
  var createRule = shared.createRuleForPlugin("x");
47
47
 
48
48
  // src/rules/avoid-shorthand-boolean.ts
@@ -281,7 +281,7 @@ function isReactChildrenMethod(name2) {
281
281
  return reactChildrenMethod.some((method) => method === name2);
282
282
  }
283
283
  function isUsingReactChildren(node, context) {
284
- const settings = shared.unsafeReadSettings(context.settings);
284
+ const settings = shared.getSettingsFromContext(context);
285
285
  const { callee } = node;
286
286
  if (!("property" in callee) || !("object" in callee) || !("name" in callee.property)) {
287
287
  return false;
package/dist/index.mjs CHANGED
@@ -1,6 +1,6 @@
1
1
  import { F, O, or, isString, isNullable } from '@eslint-react/eff';
2
2
  import * as JSX7 from '@eslint-react/jsx';
3
- import { createRuleForPlugin, getSettingsFromContext, unsafeReadSettings } from '@eslint-react/shared';
3
+ import { createRuleForPlugin, getSettingsFromContext } from '@eslint-react/shared';
4
4
  import * as AST11 from '@eslint-react/ast';
5
5
  import { isForwardRefCall, isThisSetState, isClassComponent, isCreateElementCall, isCloneElementCall, isChildrenCount, isChildrenForEach, isChildrenMap, isChildrenOnly, isChildrenToArray, useComponentCollectorLegacy, isCreateRefCall, isComponentName, useComponentCollector, ERFunctionComponentFlag, isChildrenToArrayCall, ERComponentHint, isDirectValueOfRenderPropertyLoose, isDeclaredInRenderPropLoose, isInsideCreateElementProps, isInsideRenderMethod, ERClassComponentFlag, isReactHookCall, isInitializedFromReact } from '@eslint-react/core';
6
6
  import { AST_NODE_TYPES } from '@typescript-eslint/types';
@@ -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.23.2-next.2";
18
+ var version = "1.23.2-next.3";
19
19
  var createRule = createRuleForPlugin("x");
20
20
 
21
21
  // src/rules/avoid-shorthand-boolean.ts
@@ -254,7 +254,7 @@ function isReactChildrenMethod(name2) {
254
254
  return reactChildrenMethod.some((method) => method === name2);
255
255
  }
256
256
  function isUsingReactChildren(node, context) {
257
- const settings = unsafeReadSettings(context.settings);
257
+ const settings = getSettingsFromContext(context);
258
258
  const { callee } = node;
259
259
  if (!("property" in callee) || !("object" in callee) || !("name" in callee.property)) {
260
260
  return false;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eslint-plugin-react-x",
3
- "version": "1.23.2-next.2",
3
+ "version": "1.23.2-next.3",
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",
@@ -49,13 +49,13 @@
49
49
  "string-ts": "^2.2.0",
50
50
  "ts-api-utils": "^2.0.0",
51
51
  "ts-pattern": "^5.6.0",
52
- "@eslint-react/ast": "1.23.2-next.2",
53
- "@eslint-react/eff": "1.23.2-next.2",
54
- "@eslint-react/core": "1.23.2-next.2",
55
- "@eslint-react/jsx": "1.23.2-next.2",
56
- "@eslint-react/var": "1.23.2-next.2",
57
- "@eslint-react/types": "1.23.2-next.2",
58
- "@eslint-react/shared": "1.23.2-next.2"
52
+ "@eslint-react/ast": "1.23.2-next.3",
53
+ "@eslint-react/core": "1.23.2-next.3",
54
+ "@eslint-react/eff": "1.23.2-next.3",
55
+ "@eslint-react/shared": "1.23.2-next.3",
56
+ "@eslint-react/var": "1.23.2-next.3",
57
+ "@eslint-react/jsx": "1.23.2-next.3",
58
+ "@eslint-react/types": "1.23.2-next.3"
59
59
  },
60
60
  "devDependencies": {
61
61
  "@types/react": "^19.0.2",