eslint-plugin-react-x 1.30.1-next.1 → 1.30.2-next.0

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/LICENSE CHANGED
@@ -1,6 +1,6 @@
1
1
  MIT License
2
2
 
3
- Copyright (c) 2024 Eva1ent
3
+ Copyright (c) 2025 Eva1ent
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
package/dist/index.js CHANGED
@@ -136,7 +136,7 @@ var settings3 = {
136
136
 
137
137
  // package.json
138
138
  var name4 = "eslint-plugin-react-x";
139
- var version = "1.30.1-next.1";
139
+ var version = "1.30.2-next.0";
140
140
  var createRule = shared.createRuleForPlugin("x");
141
141
 
142
142
  // src/rules/avoid-shorthand-boolean.ts
@@ -1209,7 +1209,7 @@ var no_default_props_default = createRule({
1209
1209
  return;
1210
1210
  }
1211
1211
  const variable = VAR__namespace.findVariable(object.name, context.sourceCode.getScope(node));
1212
- const variableNode = VAR__namespace.getVariableNode(variable, 0);
1212
+ const variableNode = VAR__namespace.getVariableInitNode(variable, 0);
1213
1213
  if (variableNode == null) return;
1214
1214
  if (!AST11__namespace.isFunction(variableNode) && !core.isClassComponent(variableNode)) return;
1215
1215
  context.report({ messageId: "noDefaultProps", node: property });
@@ -2126,7 +2126,7 @@ var no_prop_types_default = createRule({
2126
2126
  return;
2127
2127
  }
2128
2128
  const variable = VAR__namespace.findVariable(object.name, context.sourceCode.getScope(node));
2129
- const variableNode = VAR__namespace.getVariableNode(variable, 0);
2129
+ const variableNode = VAR__namespace.getVariableInitNode(variable, 0);
2130
2130
  if (variableNode != null && (AST11__namespace.isFunction(variableNode) || core.isClassComponent(variableNode))) {
2131
2131
  context.report({ messageId: "noPropTypes", node: property });
2132
2132
  }
package/dist/index.mjs CHANGED
@@ -109,7 +109,7 @@ var settings3 = {
109
109
 
110
110
  // package.json
111
111
  var name4 = "eslint-plugin-react-x";
112
- var version = "1.30.1-next.1";
112
+ var version = "1.30.2-next.0";
113
113
  var createRule = createRuleForPlugin("x");
114
114
 
115
115
  // src/rules/avoid-shorthand-boolean.ts
@@ -1182,7 +1182,7 @@ var no_default_props_default = createRule({
1182
1182
  return;
1183
1183
  }
1184
1184
  const variable = VAR.findVariable(object.name, context.sourceCode.getScope(node));
1185
- const variableNode = VAR.getVariableNode(variable, 0);
1185
+ const variableNode = VAR.getVariableInitNode(variable, 0);
1186
1186
  if (variableNode == null) return;
1187
1187
  if (!AST11.isFunction(variableNode) && !isClassComponent(variableNode)) return;
1188
1188
  context.report({ messageId: "noDefaultProps", node: property });
@@ -2099,7 +2099,7 @@ var no_prop_types_default = createRule({
2099
2099
  return;
2100
2100
  }
2101
2101
  const variable = VAR.findVariable(object.name, context.sourceCode.getScope(node));
2102
- const variableNode = VAR.getVariableNode(variable, 0);
2102
+ const variableNode = VAR.getVariableInitNode(variable, 0);
2103
2103
  if (variableNode != null && (AST11.isFunction(variableNode) || isClassComponent(variableNode))) {
2104
2104
  context.report({ messageId: "noPropTypes", node: property });
2105
2105
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eslint-plugin-react-x",
3
- "version": "1.30.1-next.1",
3
+ "version": "1.30.2-next.0",
4
4
  "description": "A set of composable linting rules for libraries and frameworks that use React as a UI runtime.",
5
5
  "keywords": [
6
6
  "react",
@@ -49,12 +49,12 @@
49
49
  "compare-versions": "^6.1.1",
50
50
  "string-ts": "^2.2.1",
51
51
  "ts-pattern": "^5.6.2",
52
- "@eslint-react/core": "1.30.1-next.1",
53
- "@eslint-react/eff": "1.30.1-next.1",
54
- "@eslint-react/ast": "1.30.1-next.1",
55
- "@eslint-react/shared": "1.30.1-next.1",
56
- "@eslint-react/var": "1.30.1-next.1",
57
- "@eslint-react/jsx": "1.30.1-next.1"
52
+ "@eslint-react/ast": "1.30.2-next.0",
53
+ "@eslint-react/core": "1.30.2-next.0",
54
+ "@eslint-react/eff": "1.30.2-next.0",
55
+ "@eslint-react/shared": "1.30.2-next.0",
56
+ "@eslint-react/var": "1.30.2-next.0",
57
+ "@eslint-react/jsx": "1.30.2-next.0"
58
58
  },
59
59
  "devDependencies": {
60
60
  "@types/react": "^19.0.10",