eslint-plugin-react-debug 5.18.3 → 5.18.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 +5 -3
- package/package.json +10 -10
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.18.
|
|
32
|
+
var version = "5.18.4";
|
|
33
33
|
|
|
34
34
|
//#endregion
|
|
35
35
|
//#region src/utils/create-rule.ts
|
|
@@ -143,7 +143,8 @@ function create$2(context) {
|
|
|
143
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
|
+
const initialScope = context.sourceCode.getScope(node);
|
|
147
|
+
if (!isFromReact(node, initialScope, importSource)) return;
|
|
147
148
|
context.report({
|
|
148
149
|
data: { json: stringify({
|
|
149
150
|
name,
|
|
@@ -206,7 +207,8 @@ var is_from_ref_default = createRule({
|
|
|
206
207
|
});
|
|
207
208
|
function create$1(context) {
|
|
208
209
|
function visit(node) {
|
|
209
|
-
const
|
|
210
|
+
const initialScope = context.sourceCode.getScope(node);
|
|
211
|
+
const refInit = getRefInitNode(context, node, initialScope);
|
|
210
212
|
if (refInit != null) {
|
|
211
213
|
const json = stringify({
|
|
212
214
|
name: node.name,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "eslint-plugin-react-debug",
|
|
3
|
-
"version": "5.18.
|
|
3
|
+
"version": "5.18.4",
|
|
4
4
|
"description": "ESLint React's ESLint plugin for debugging related rules.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"react",
|
|
@@ -41,22 +41,22 @@
|
|
|
41
41
|
"@typescript-eslint/types": "^8.66.0",
|
|
42
42
|
"@typescript-eslint/utils": "^8.66.0",
|
|
43
43
|
"ts-pattern": "^5.9.0",
|
|
44
|
-
"@eslint-react/
|
|
45
|
-
"@eslint-react/
|
|
46
|
-
"@eslint-react/
|
|
47
|
-
"@eslint-react/
|
|
48
|
-
"@eslint-react/
|
|
49
|
-
"@eslint-react/
|
|
44
|
+
"@eslint-react/ast": "5.18.4",
|
|
45
|
+
"@eslint-react/core": "5.18.4",
|
|
46
|
+
"@eslint-react/eslint": "5.18.4",
|
|
47
|
+
"@eslint-react/jsx": "5.18.4",
|
|
48
|
+
"@eslint-react/var": "5.18.4",
|
|
49
|
+
"@eslint-react/shared": "5.18.4"
|
|
50
50
|
},
|
|
51
51
|
"devDependencies": {
|
|
52
52
|
"@types/react": "^19.2.18",
|
|
53
53
|
"@types/react-dom": "^19.2.4",
|
|
54
54
|
"dedent": "^1.7.2",
|
|
55
|
-
"eslint": "^10.8.
|
|
55
|
+
"eslint": "^10.8.1",
|
|
56
56
|
"tsdown": "^0.22.14",
|
|
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": "*",
|