eslint-plugin-react-x 2.7.2-beta.4 → 2.7.2-beta.5

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.
Files changed (2) hide show
  1. package/dist/index.js +2 -2
  2. package/package.json +6 -6
package/dist/index.js CHANGED
@@ -68,7 +68,7 @@ const rules$7 = {
68
68
  //#endregion
69
69
  //#region package.json
70
70
  var name$6 = "eslint-plugin-react-x";
71
- var version = "2.7.2-beta.4";
71
+ var version = "2.7.2-beta.5";
72
72
 
73
73
  //#endregion
74
74
  //#region src/utils/create-rule.ts
@@ -3209,7 +3209,7 @@ function create$4(context) {
3209
3209
  const { ctx, visitors } = useComponentCollector(context);
3210
3210
  return defineRuleListener(visitors, { "Program:exit"(program) {
3211
3211
  for (const component of ctx.getAllComponents(program)) {
3212
- if (component.name == null && component.isExportDefaultDeclaration) return;
3212
+ if (component.name == null && component.isExportDefaultDeclaration) continue;
3213
3213
  const [props] = component.node.params;
3214
3214
  if (props == null) continue;
3215
3215
  if (props.type !== AST_NODE_TYPES.Identifier) continue;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eslint-plugin-react-x",
3
- "version": "2.7.2-beta.4",
3
+ "version": "2.7.2-beta.5",
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",
@@ -46,11 +46,11 @@
46
46
  "string-ts": "^2.3.1",
47
47
  "ts-api-utils": "^2.4.0",
48
48
  "ts-pattern": "^5.9.0",
49
- "@eslint-react/ast": "2.7.2-beta.4",
50
- "@eslint-react/core": "2.7.2-beta.4",
51
- "@eslint-react/eff": "2.7.2-beta.4",
52
- "@eslint-react/shared": "2.7.2-beta.4",
53
- "@eslint-react/var": "2.7.2-beta.4"
49
+ "@eslint-react/ast": "2.7.2-beta.5",
50
+ "@eslint-react/core": "2.7.2-beta.5",
51
+ "@eslint-react/eff": "2.7.2-beta.5",
52
+ "@eslint-react/var": "2.7.2-beta.5",
53
+ "@eslint-react/shared": "2.7.2-beta.5"
54
54
  },
55
55
  "devDependencies": {
56
56
  "@types/react": "^19.2.8",