eslint-plugin-react-x 2.0.0-next.36 → 2.0.0-next.38

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 +3 -1
  2. package/package.json +8 -8
package/dist/index.js CHANGED
@@ -125,7 +125,7 @@ var settings3 = {
125
125
 
126
126
  // package.json
127
127
  var name4 = "eslint-plugin-react-x";
128
- var version = "2.0.0-next.36";
128
+ var version = "2.0.0-next.38";
129
129
  var createRule = ESLintUtils.RuleCreator(getDocsUrl("x"));
130
130
 
131
131
  // src/rules/jsx-key-before-spread.ts
@@ -3972,6 +3972,8 @@ function create58(context) {
3972
3972
  "Program:exit"(program) {
3973
3973
  const components = ctx.getAllComponents(program);
3974
3974
  for (const [, component] of components) {
3975
+ if (component.id == null) continue;
3976
+ if (component.name == null) continue;
3975
3977
  const [props] = component.node.params;
3976
3978
  if (props == null) {
3977
3979
  continue;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eslint-plugin-react-x",
3
- "version": "2.0.0-next.36",
3
+ "version": "2.0.0-next.38",
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",
@@ -42,16 +42,16 @@
42
42
  "is-immutable-type": "^5.0.1",
43
43
  "string-ts": "^2.2.1",
44
44
  "ts-pattern": "^5.7.1",
45
- "@eslint-react/ast": "2.0.0-next.36",
46
- "@eslint-react/core": "2.0.0-next.36",
47
- "@eslint-react/kit": "2.0.0-next.36",
48
- "@eslint-react/eff": "2.0.0-next.36",
49
- "@eslint-react/shared": "2.0.0-next.36",
50
- "@eslint-react/var": "2.0.0-next.36"
45
+ "@eslint-react/ast": "2.0.0-next.38",
46
+ "@eslint-react/core": "2.0.0-next.38",
47
+ "@eslint-react/eff": "2.0.0-next.38",
48
+ "@eslint-react/shared": "2.0.0-next.38",
49
+ "@eslint-react/kit": "2.0.0-next.38",
50
+ "@eslint-react/var": "2.0.0-next.38"
51
51
  },
52
52
  "devDependencies": {
53
53
  "@types/react": "^19.1.6",
54
- "@types/react-dom": "^19.1.5",
54
+ "@types/react-dom": "^19.1.6",
55
55
  "ts-api-utils": "^2.1.0",
56
56
  "tsup": "^8.5.0",
57
57
  "@local/configs": "0.0.0"