eslint-plugin-react-x 1.47.0-next.0 → 1.47.0-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
@@ -141,7 +141,7 @@ var settings3 = {
141
141
 
142
142
  // package.json
143
143
  var name4 = "eslint-plugin-react-x";
144
- var version = "1.47.0-next.0";
144
+ var version = "1.47.0-next.2";
145
145
  var createRule = utils.ESLintUtils.RuleCreator(shared.getDocsUrl("x"));
146
146
 
147
147
  // src/rules/avoid-shorthand-boolean.ts
@@ -2159,7 +2159,7 @@ function create35(context) {
2159
2159
  ];
2160
2160
  for (const lazy of lazyComponentDeclarations) {
2161
2161
  const significantParent = AST8__namespace.findParentNode(lazy, (n) => {
2162
- if (ER25__namespace.isJSX(n)) return true;
2162
+ if (AST8__namespace.isJSX(n)) return true;
2163
2163
  if (n.type === types.AST_NODE_TYPES.CallExpression) {
2164
2164
  return ER25__namespace.isReactHookCall(n) || ER25__namespace.isCreateElementCall(context, n) || ER25__namespace.isCreateContextCall(context, n);
2165
2165
  }
package/dist/index.mjs CHANGED
@@ -114,7 +114,7 @@ var settings3 = {
114
114
 
115
115
  // package.json
116
116
  var name4 = "eslint-plugin-react-x";
117
- var version = "1.47.0-next.0";
117
+ var version = "1.47.0-next.2";
118
118
  var createRule = ESLintUtils.RuleCreator(getDocsUrl("x"));
119
119
 
120
120
  // src/rules/avoid-shorthand-boolean.ts
@@ -2132,7 +2132,7 @@ function create35(context) {
2132
2132
  ];
2133
2133
  for (const lazy of lazyComponentDeclarations) {
2134
2134
  const significantParent = AST8.findParentNode(lazy, (n) => {
2135
- if (ER25.isJSX(n)) return true;
2135
+ if (AST8.isJSX(n)) return true;
2136
2136
  if (n.type === AST_NODE_TYPES.CallExpression) {
2137
2137
  return ER25.isReactHookCall(n) || ER25.isCreateElementCall(context, n) || ER25.isCreateContextCall(context, n);
2138
2138
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eslint-plugin-react-x",
3
- "version": "1.47.0-next.0",
3
+ "version": "1.47.0-next.2",
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",
@@ -50,12 +50,12 @@
50
50
  "is-immutable-type": "^5.0.1",
51
51
  "string-ts": "^2.2.1",
52
52
  "ts-pattern": "^5.7.0",
53
- "@eslint-react/ast": "1.47.0-next.0",
54
- "@eslint-react/core": "1.47.0-next.0",
55
- "@eslint-react/eff": "1.47.0-next.0",
56
- "@eslint-react/kit": "1.47.0-next.0",
57
- "@eslint-react/shared": "1.47.0-next.0",
58
- "@eslint-react/var": "1.47.0-next.0"
53
+ "@eslint-react/ast": "1.47.0-next.2",
54
+ "@eslint-react/eff": "1.47.0-next.2",
55
+ "@eslint-react/shared": "1.47.0-next.2",
56
+ "@eslint-react/kit": "1.47.0-next.2",
57
+ "@eslint-react/core": "1.47.0-next.2",
58
+ "@eslint-react/var": "1.47.0-next.2"
59
59
  },
60
60
  "devDependencies": {
61
61
  "@types/react": "^19.1.1",