eslint-plugin-react-debug 1.28.0-next.3 → 1.28.0-next.4
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 +3 -7
- package/dist/index.mjs +3 -7
- package/package.json +7 -7
package/dist/index.js
CHANGED
|
@@ -30,7 +30,7 @@ var settings = {
|
|
|
30
30
|
|
|
31
31
|
// package.json
|
|
32
32
|
var name2 = "eslint-plugin-react-debug";
|
|
33
|
-
var version = "1.28.0-next.
|
|
33
|
+
var version = "1.28.0-next.4";
|
|
34
34
|
var createRule = shared.createRuleForPlugin("debug");
|
|
35
35
|
|
|
36
36
|
// src/rules/class-component.ts
|
|
@@ -189,14 +189,10 @@ var is_from_react_default = createRule({
|
|
|
189
189
|
}
|
|
190
190
|
function visitorFunction(node) {
|
|
191
191
|
const shouldSkipDuplicate = node.parent.type === utils.AST_NODE_TYPES.ImportSpecifier && node.parent.imported === node && node.parent.imported.name === node.parent.local.name;
|
|
192
|
-
if (shouldSkipDuplicate)
|
|
193
|
-
return;
|
|
194
|
-
}
|
|
192
|
+
if (shouldSkipDuplicate) return;
|
|
195
193
|
const name3 = node.name;
|
|
196
194
|
const initialScope = context.sourceCode.getScope(node);
|
|
197
|
-
if (!isFromReact(node, initialScope))
|
|
198
|
-
return;
|
|
199
|
-
}
|
|
195
|
+
if (!isFromReact(node, initialScope)) return;
|
|
200
196
|
context.report({
|
|
201
197
|
messageId: "isFromReact",
|
|
202
198
|
node,
|
package/dist/index.mjs
CHANGED
|
@@ -28,7 +28,7 @@ var settings = {
|
|
|
28
28
|
|
|
29
29
|
// package.json
|
|
30
30
|
var name2 = "eslint-plugin-react-debug";
|
|
31
|
-
var version = "1.28.0-next.
|
|
31
|
+
var version = "1.28.0-next.4";
|
|
32
32
|
var createRule = createRuleForPlugin("debug");
|
|
33
33
|
|
|
34
34
|
// src/rules/class-component.ts
|
|
@@ -187,14 +187,10 @@ var is_from_react_default = createRule({
|
|
|
187
187
|
}
|
|
188
188
|
function visitorFunction(node) {
|
|
189
189
|
const shouldSkipDuplicate = node.parent.type === AST_NODE_TYPES.ImportSpecifier && node.parent.imported === node && node.parent.imported.name === node.parent.local.name;
|
|
190
|
-
if (shouldSkipDuplicate)
|
|
191
|
-
return;
|
|
192
|
-
}
|
|
190
|
+
if (shouldSkipDuplicate) return;
|
|
193
191
|
const name3 = node.name;
|
|
194
192
|
const initialScope = context.sourceCode.getScope(node);
|
|
195
|
-
if (!isFromReact(node, initialScope))
|
|
196
|
-
return;
|
|
197
|
-
}
|
|
193
|
+
if (!isFromReact(node, initialScope)) return;
|
|
198
194
|
context.report({
|
|
199
195
|
messageId: "isFromReact",
|
|
200
196
|
node,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "eslint-plugin-react-debug",
|
|
3
|
-
"version": "1.28.0-next.
|
|
3
|
+
"version": "1.28.0-next.4",
|
|
4
4
|
"description": "ESLint React's ESLint plugin for debugging related rules.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"react",
|
|
@@ -49,12 +49,12 @@
|
|
|
49
49
|
"@typescript-eslint/utils": "^8.25.0",
|
|
50
50
|
"string-ts": "^2.2.1",
|
|
51
51
|
"ts-pattern": "^5.6.2",
|
|
52
|
-
"@eslint-react/ast": "1.28.0-next.
|
|
53
|
-
"@eslint-react/core": "1.28.0-next.
|
|
54
|
-
"@eslint-react/eff": "1.28.0-next.
|
|
55
|
-
"@eslint-react/jsx": "1.28.0-next.
|
|
56
|
-
"@eslint-react/var": "1.28.0-next.
|
|
57
|
-
"@eslint-react/shared": "1.28.0-next.
|
|
52
|
+
"@eslint-react/ast": "1.28.0-next.4",
|
|
53
|
+
"@eslint-react/core": "1.28.0-next.4",
|
|
54
|
+
"@eslint-react/eff": "1.28.0-next.4",
|
|
55
|
+
"@eslint-react/jsx": "1.28.0-next.4",
|
|
56
|
+
"@eslint-react/var": "1.28.0-next.4",
|
|
57
|
+
"@eslint-react/shared": "1.28.0-next.4"
|
|
58
58
|
},
|
|
59
59
|
"devDependencies": {
|
|
60
60
|
"@types/react": "^19.0.10",
|