eslint-plugin-react-x 1.23.3-next.7 → 1.23.3-next.8

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.3-next.7";
45
+ var version = "1.23.3-next.8";
46
46
  var createRule = shared.createRuleForPlugin("x");
47
47
 
48
48
  // src/rules/avoid-shorthand-boolean.ts
@@ -1854,8 +1854,12 @@ var no_nested_components_default = createRule({
1854
1854
  ...collector.listeners,
1855
1855
  ...collectorLegacy.listeners,
1856
1856
  "Program:exit"(node) {
1857
- const functionComponents = Array.from(collector.ctx.getAllComponents(node).values());
1858
- const classComponents = Array.from(collectorLegacy.ctx.getAllComponents(node).values());
1857
+ const functionComponents = [
1858
+ ...collector.ctx.getAllComponents(node).values()
1859
+ ];
1860
+ const classComponents = [
1861
+ ...collectorLegacy.ctx.getAllComponents(node).values()
1862
+ ];
1859
1863
  const isFunctionComponent = (node2) => {
1860
1864
  return AST11__namespace.isFunction(node2) && functionComponents.some((component) => component.node === node2);
1861
1865
  };
@@ -3001,7 +3005,9 @@ var prefer_destructuring_assignment_default = createRule({
3001
3005
  }
3002
3006
  },
3003
3007
  "Program:exit"(node) {
3004
- const components = Array.from(ctx.getAllComponents(node).values());
3008
+ const components = [
3009
+ ...ctx.getAllComponents(node).values()
3010
+ ];
3005
3011
  function isFunctionComponent(block) {
3006
3012
  if (!AST11__namespace.isFunction(block)) {
3007
3013
  return false;
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.23.3-next.7";
18
+ var version = "1.23.3-next.8";
19
19
  var createRule = createRuleForPlugin("x");
20
20
 
21
21
  // src/rules/avoid-shorthand-boolean.ts
@@ -1827,8 +1827,12 @@ var no_nested_components_default = createRule({
1827
1827
  ...collector.listeners,
1828
1828
  ...collectorLegacy.listeners,
1829
1829
  "Program:exit"(node) {
1830
- const functionComponents = Array.from(collector.ctx.getAllComponents(node).values());
1831
- const classComponents = Array.from(collectorLegacy.ctx.getAllComponents(node).values());
1830
+ const functionComponents = [
1831
+ ...collector.ctx.getAllComponents(node).values()
1832
+ ];
1833
+ const classComponents = [
1834
+ ...collectorLegacy.ctx.getAllComponents(node).values()
1835
+ ];
1832
1836
  const isFunctionComponent = (node2) => {
1833
1837
  return AST11.isFunction(node2) && functionComponents.some((component) => component.node === node2);
1834
1838
  };
@@ -2974,7 +2978,9 @@ var prefer_destructuring_assignment_default = createRule({
2974
2978
  }
2975
2979
  },
2976
2980
  "Program:exit"(node) {
2977
- const components = Array.from(ctx.getAllComponents(node).values());
2981
+ const components = [
2982
+ ...ctx.getAllComponents(node).values()
2983
+ ];
2978
2984
  function isFunctionComponent(block) {
2979
2985
  if (!AST11.isFunction(block)) {
2980
2986
  return false;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eslint-plugin-react-x",
3
- "version": "1.23.3-next.7",
3
+ "version": "1.23.3-next.8",
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",
@@ -48,13 +48,13 @@
48
48
  "is-immutable-type": "^5.0.1",
49
49
  "string-ts": "^2.2.0",
50
50
  "ts-pattern": "^5.6.0",
51
- "@eslint-react/ast": "1.23.3-next.7",
52
- "@eslint-react/core": "1.23.3-next.7",
53
- "@eslint-react/eff": "1.23.3-next.7",
54
- "@eslint-react/jsx": "1.23.3-next.7",
55
- "@eslint-react/types": "1.23.3-next.7",
56
- "@eslint-react/shared": "1.23.3-next.7",
57
- "@eslint-react/var": "1.23.3-next.7"
51
+ "@eslint-react/ast": "1.23.3-next.8",
52
+ "@eslint-react/core": "1.23.3-next.8",
53
+ "@eslint-react/eff": "1.23.3-next.8",
54
+ "@eslint-react/shared": "1.23.3-next.8",
55
+ "@eslint-react/jsx": "1.23.3-next.8",
56
+ "@eslint-react/types": "1.23.3-next.8",
57
+ "@eslint-react/var": "1.23.3-next.8"
58
58
  },
59
59
  "devDependencies": {
60
60
  "@types/react": "^19.0.4",