eslint-plugin-react-debug 5.10.0 → 5.10.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/dist/index.js +7 -7
- package/package.json +12 -12
package/dist/index.js
CHANGED
|
@@ -29,7 +29,7 @@ var __exportAll = (all, no_symbols) => {
|
|
|
29
29
|
//#endregion
|
|
30
30
|
//#region package.json
|
|
31
31
|
var name$1 = "eslint-plugin-react-debug";
|
|
32
|
-
var version = "5.10.
|
|
32
|
+
var version = "5.10.1";
|
|
33
33
|
|
|
34
34
|
//#endregion
|
|
35
35
|
//#region src/utils/create-rule.ts
|
|
@@ -140,7 +140,7 @@ var is_from_react_default = createRule({
|
|
|
140
140
|
});
|
|
141
141
|
function create$2(context) {
|
|
142
142
|
const { importSource } = getSettingsFromContext(context);
|
|
143
|
-
function
|
|
143
|
+
function visit(node) {
|
|
144
144
|
if (node.parent.type === AST_NODE_TYPES.ImportSpecifier && node.parent.imported === node && node.parent.imported.name === node.parent.local.name) return;
|
|
145
145
|
const name = node.name;
|
|
146
146
|
if (!isFromReact(node, context.sourceCode.getScope(node), importSource)) return;
|
|
@@ -154,8 +154,8 @@ function create$2(context) {
|
|
|
154
154
|
});
|
|
155
155
|
}
|
|
156
156
|
return {
|
|
157
|
-
Identifier:
|
|
158
|
-
JSXIdentifier:
|
|
157
|
+
Identifier: visit,
|
|
158
|
+
JSXIdentifier: visit
|
|
159
159
|
};
|
|
160
160
|
}
|
|
161
161
|
|
|
@@ -204,7 +204,7 @@ var is_from_ref_default = createRule({
|
|
|
204
204
|
defaultOptions: []
|
|
205
205
|
});
|
|
206
206
|
function create$1(context) {
|
|
207
|
-
function
|
|
207
|
+
function visit(node) {
|
|
208
208
|
const refInit = getRefInitNode(context, node, context.sourceCode.getScope(node));
|
|
209
209
|
if (refInit != null) {
|
|
210
210
|
const json = stringify({
|
|
@@ -219,8 +219,8 @@ function create$1(context) {
|
|
|
219
219
|
}
|
|
220
220
|
}
|
|
221
221
|
return {
|
|
222
|
-
Identifier:
|
|
223
|
-
JSXIdentifier:
|
|
222
|
+
Identifier: visit,
|
|
223
|
+
JSXIdentifier: visit
|
|
224
224
|
};
|
|
225
225
|
}
|
|
226
226
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "eslint-plugin-react-debug",
|
|
3
|
-
"version": "5.10.
|
|
3
|
+
"version": "5.10.1",
|
|
4
4
|
"description": "ESLint React's ESLint plugin for debugging related rules.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"react",
|
|
@@ -37,16 +37,16 @@
|
|
|
37
37
|
"dist"
|
|
38
38
|
],
|
|
39
39
|
"dependencies": {
|
|
40
|
-
"@typescript-eslint/scope-manager": "^8.62.
|
|
41
|
-
"@typescript-eslint/types": "^8.62.
|
|
42
|
-
"@typescript-eslint/utils": "^8.62.
|
|
40
|
+
"@typescript-eslint/scope-manager": "^8.62.1",
|
|
41
|
+
"@typescript-eslint/types": "^8.62.1",
|
|
42
|
+
"@typescript-eslint/utils": "^8.62.1",
|
|
43
43
|
"ts-pattern": "^5.9.0",
|
|
44
|
-
"@eslint-react/
|
|
45
|
-
"@eslint-react/
|
|
46
|
-
"@eslint-react/
|
|
47
|
-
"@eslint-react/
|
|
48
|
-
"@eslint-react/shared": "5.10.
|
|
49
|
-
"@eslint-react/var": "5.10.
|
|
44
|
+
"@eslint-react/ast": "5.10.1",
|
|
45
|
+
"@eslint-react/core": "5.10.1",
|
|
46
|
+
"@eslint-react/eslint": "5.10.1",
|
|
47
|
+
"@eslint-react/jsx": "5.10.1",
|
|
48
|
+
"@eslint-react/shared": "5.10.1",
|
|
49
|
+
"@eslint-react/var": "5.10.1"
|
|
50
50
|
},
|
|
51
51
|
"devDependencies": {
|
|
52
52
|
"@types/react": "^19.2.17",
|
|
@@ -55,8 +55,8 @@
|
|
|
55
55
|
"eslint": "^10.6.0",
|
|
56
56
|
"tsdown": "^0.22.3",
|
|
57
57
|
"typescript": "6.0.3",
|
|
58
|
-
"@local/
|
|
59
|
-
"@local/
|
|
58
|
+
"@local/configs": "0.0.0",
|
|
59
|
+
"@local/eff": "0.0.0"
|
|
60
60
|
},
|
|
61
61
|
"peerDependencies": {
|
|
62
62
|
"eslint": "*",
|