eslint-plugin-react-x 1.30.1-next.0 → 1.30.1
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 +1 -1
- package/dist/index.js +3 -3
- package/dist/index.mjs +3 -3
- package/package.json +11 -11
package/LICENSE
CHANGED
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
|
|
139
|
+
var version = "1.30.1";
|
|
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.
|
|
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.
|
|
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
|
|
112
|
+
var version = "1.30.1";
|
|
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.
|
|
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.
|
|
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
|
|
3
|
+
"version": "1.30.1",
|
|
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",
|
|
@@ -42,19 +42,19 @@
|
|
|
42
42
|
"./package.json"
|
|
43
43
|
],
|
|
44
44
|
"dependencies": {
|
|
45
|
-
"@typescript-eslint/scope-manager": "^8.
|
|
46
|
-
"@typescript-eslint/type-utils": "^8.
|
|
47
|
-
"@typescript-eslint/types": "^8.
|
|
48
|
-
"@typescript-eslint/utils": "^8.
|
|
45
|
+
"@typescript-eslint/scope-manager": "^8.26.0",
|
|
46
|
+
"@typescript-eslint/type-utils": "^8.26.0",
|
|
47
|
+
"@typescript-eslint/types": "^8.26.0",
|
|
48
|
+
"@typescript-eslint/utils": "^8.26.0",
|
|
49
49
|
"compare-versions": "^6.1.1",
|
|
50
50
|
"string-ts": "^2.2.1",
|
|
51
51
|
"ts-pattern": "^5.6.2",
|
|
52
|
-
"@eslint-react/ast": "1.30.1
|
|
53
|
-
"@eslint-react/core": "1.30.1
|
|
54
|
-
"@eslint-react/
|
|
55
|
-
"@eslint-react/
|
|
56
|
-
"@eslint-react/
|
|
57
|
-
"@eslint-react/
|
|
52
|
+
"@eslint-react/ast": "1.30.1",
|
|
53
|
+
"@eslint-react/core": "1.30.1",
|
|
54
|
+
"@eslint-react/eff": "1.30.1",
|
|
55
|
+
"@eslint-react/jsx": "1.30.1",
|
|
56
|
+
"@eslint-react/var": "1.30.1",
|
|
57
|
+
"@eslint-react/shared": "1.30.1"
|
|
58
58
|
},
|
|
59
59
|
"devDependencies": {
|
|
60
60
|
"@types/react": "^19.0.10",
|