eslint-plugin-react-debug 1.23.2-next.6 → 1.23.3-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/dist/index.js +7 -3
- package/dist/index.mjs +7 -3
- package/package.json +10 -10
package/dist/index.js
CHANGED
|
@@ -7,7 +7,7 @@ var utils = require('@typescript-eslint/utils');
|
|
|
7
7
|
|
|
8
8
|
// package.json
|
|
9
9
|
var name = "eslint-plugin-react-debug";
|
|
10
|
-
var version = "1.23.
|
|
10
|
+
var version = "1.23.3-next.0";
|
|
11
11
|
var createRule = shared.createRuleForPlugin("debug");
|
|
12
12
|
|
|
13
13
|
// src/rules/class-component.ts
|
|
@@ -166,10 +166,14 @@ var is_from_react_default = createRule({
|
|
|
166
166
|
}
|
|
167
167
|
function getReportDescriptor(node) {
|
|
168
168
|
const shouldSkipDuplicate = node.parent.type === utils.AST_NODE_TYPES.ImportSpecifier && node.parent.imported === node && node.parent.imported.name === node.parent.local.name;
|
|
169
|
-
if (shouldSkipDuplicate)
|
|
169
|
+
if (shouldSkipDuplicate) {
|
|
170
|
+
return eff.O.none();
|
|
171
|
+
}
|
|
170
172
|
const name2 = node.name;
|
|
171
173
|
const initialScope = context.sourceCode.getScope(node);
|
|
172
|
-
if (!isFromReact(node, initialScope))
|
|
174
|
+
if (!isFromReact(node, initialScope)) {
|
|
175
|
+
return eff.O.none();
|
|
176
|
+
}
|
|
173
177
|
return eff.O.some({
|
|
174
178
|
messageId: "isFromReact",
|
|
175
179
|
node,
|
package/dist/index.mjs
CHANGED
|
@@ -5,7 +5,7 @@ import { AST_NODE_TYPES } from '@typescript-eslint/utils';
|
|
|
5
5
|
|
|
6
6
|
// package.json
|
|
7
7
|
var name = "eslint-plugin-react-debug";
|
|
8
|
-
var version = "1.23.
|
|
8
|
+
var version = "1.23.3-next.0";
|
|
9
9
|
var createRule = createRuleForPlugin("debug");
|
|
10
10
|
|
|
11
11
|
// src/rules/class-component.ts
|
|
@@ -164,10 +164,14 @@ var is_from_react_default = createRule({
|
|
|
164
164
|
}
|
|
165
165
|
function getReportDescriptor(node) {
|
|
166
166
|
const shouldSkipDuplicate = node.parent.type === AST_NODE_TYPES.ImportSpecifier && node.parent.imported === node && node.parent.imported.name === node.parent.local.name;
|
|
167
|
-
if (shouldSkipDuplicate)
|
|
167
|
+
if (shouldSkipDuplicate) {
|
|
168
|
+
return O.none();
|
|
169
|
+
}
|
|
168
170
|
const name2 = node.name;
|
|
169
171
|
const initialScope = context.sourceCode.getScope(node);
|
|
170
|
-
if (!isFromReact(node, initialScope))
|
|
172
|
+
if (!isFromReact(node, initialScope)) {
|
|
173
|
+
return O.none();
|
|
174
|
+
}
|
|
171
175
|
return O.some({
|
|
172
176
|
messageId: "isFromReact",
|
|
173
177
|
node,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "eslint-plugin-react-debug",
|
|
3
|
-
"version": "1.23.
|
|
3
|
+
"version": "1.23.3-next.0",
|
|
4
4
|
"description": "ESLint React's ESLint plugin for debugging related rules.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"react",
|
|
@@ -21,6 +21,7 @@
|
|
|
21
21
|
},
|
|
22
22
|
"license": "MIT",
|
|
23
23
|
"author": "Eva1ent<rel1cx@proton.me>",
|
|
24
|
+
"sideEffects": false,
|
|
24
25
|
"exports": {
|
|
25
26
|
".": {
|
|
26
27
|
"import": {
|
|
@@ -35,6 +36,7 @@
|
|
|
35
36
|
"./package.json": "./package.json"
|
|
36
37
|
},
|
|
37
38
|
"main": "dist/index.js",
|
|
39
|
+
"module": "dist/index.mjs",
|
|
38
40
|
"types": "./dist/index.d.ts",
|
|
39
41
|
"files": [
|
|
40
42
|
"dist",
|
|
@@ -47,13 +49,13 @@
|
|
|
47
49
|
"@typescript-eslint/utils": "^8.19.1",
|
|
48
50
|
"string-ts": "^2.2.0",
|
|
49
51
|
"ts-pattern": "^5.6.0",
|
|
50
|
-
"@eslint-react/ast": "1.23.
|
|
51
|
-
"@eslint-react/
|
|
52
|
-
"@eslint-react/
|
|
53
|
-
"@eslint-react/shared": "1.23.
|
|
54
|
-
"@eslint-react/
|
|
55
|
-
"@eslint-react/
|
|
56
|
-
"@eslint-react/
|
|
52
|
+
"@eslint-react/ast": "1.23.3-next.0",
|
|
53
|
+
"@eslint-react/eff": "1.23.3-next.0",
|
|
54
|
+
"@eslint-react/core": "1.23.3-next.0",
|
|
55
|
+
"@eslint-react/shared": "1.23.3-next.0",
|
|
56
|
+
"@eslint-react/jsx": "1.23.3-next.0",
|
|
57
|
+
"@eslint-react/var": "1.23.3-next.0",
|
|
58
|
+
"@eslint-react/types": "1.23.3-next.0"
|
|
57
59
|
},
|
|
58
60
|
"devDependencies": {
|
|
59
61
|
"@types/react": "^19.0.3",
|
|
@@ -80,8 +82,6 @@
|
|
|
80
82
|
"publishConfig": {
|
|
81
83
|
"access": "public"
|
|
82
84
|
},
|
|
83
|
-
"sideEffects": false,
|
|
84
|
-
"module": "dist/index.mjs",
|
|
85
85
|
"scripts": {
|
|
86
86
|
"build": "tsup --dts-resolve",
|
|
87
87
|
"lint:publish": "publint",
|