eslint-plugin-react-debug 1.53.1-next.0 → 1.53.1-next.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 +16 -10
- package/dist/index.mjs +2 -3
- package/package.json +12 -12
package/dist/index.js
CHANGED
|
@@ -27,13 +27,20 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
27
27
|
}) : target, mod));
|
|
28
28
|
|
|
29
29
|
//#endregion
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
30
|
+
let __eslint_react_shared = require("@eslint-react/shared");
|
|
31
|
+
__eslint_react_shared = __toESM(__eslint_react_shared);
|
|
32
|
+
let __eslint_react_core = require("@eslint-react/core");
|
|
33
|
+
__eslint_react_core = __toESM(__eslint_react_core);
|
|
34
|
+
let __typescript_eslint_utils = require("@typescript-eslint/utils");
|
|
35
|
+
__typescript_eslint_utils = __toESM(__typescript_eslint_utils);
|
|
36
|
+
let __eslint_react_eff = require("@eslint-react/eff");
|
|
37
|
+
__eslint_react_eff = __toESM(__eslint_react_eff);
|
|
38
|
+
let __eslint_react_kit = require("@eslint-react/kit");
|
|
39
|
+
__eslint_react_kit = __toESM(__eslint_react_kit);
|
|
40
|
+
let __typescript_eslint_types = require("@typescript-eslint/types");
|
|
41
|
+
__typescript_eslint_types = __toESM(__typescript_eslint_types);
|
|
42
|
+
let ts_pattern = require("ts-pattern");
|
|
43
|
+
ts_pattern = __toESM(ts_pattern);
|
|
37
44
|
|
|
38
45
|
//#region src/configs/all.ts
|
|
39
46
|
var all_exports = {};
|
|
@@ -55,7 +62,7 @@ const settings = { "react-x": __eslint_react_shared.DEFAULT_ESLINT_REACT_SETTING
|
|
|
55
62
|
//#endregion
|
|
56
63
|
//#region package.json
|
|
57
64
|
var name = "eslint-plugin-react-debug";
|
|
58
|
-
var version = "1.53.1-next.
|
|
65
|
+
var version = "1.53.1-next.1";
|
|
59
66
|
|
|
60
67
|
//#endregion
|
|
61
68
|
//#region src/utils/create-rule.ts
|
|
@@ -200,8 +207,7 @@ var is_from_react_default = createRule({
|
|
|
200
207
|
function create$1(context) {
|
|
201
208
|
const { importSource = "react" } = (0, __eslint_react_shared.getSettingsFromContext)(context);
|
|
202
209
|
function visitorFunction(node) {
|
|
203
|
-
|
|
204
|
-
if (shouldSkipDuplicate) return;
|
|
210
|
+
if (node.parent.type === __typescript_eslint_utils.AST_NODE_TYPES.ImportSpecifier && node.parent.imported === node && node.parent.imported.name === node.parent.local.name) return;
|
|
205
211
|
const name$2 = node.name;
|
|
206
212
|
const initialScope = context.sourceCode.getScope(node);
|
|
207
213
|
if (!isFromReact(node, importSource, initialScope)) return;
|
package/dist/index.mjs
CHANGED
|
@@ -36,7 +36,7 @@ const settings = { "react-x": DEFAULT_ESLINT_REACT_SETTINGS };
|
|
|
36
36
|
//#endregion
|
|
37
37
|
//#region package.json
|
|
38
38
|
var name = "eslint-plugin-react-debug";
|
|
39
|
-
var version = "1.53.1-next.
|
|
39
|
+
var version = "1.53.1-next.1";
|
|
40
40
|
|
|
41
41
|
//#endregion
|
|
42
42
|
//#region src/utils/create-rule.ts
|
|
@@ -181,8 +181,7 @@ var is_from_react_default = createRule({
|
|
|
181
181
|
function create$1(context) {
|
|
182
182
|
const { importSource = "react" } = getSettingsFromContext(context);
|
|
183
183
|
function visitorFunction(node) {
|
|
184
|
-
|
|
185
|
-
if (shouldSkipDuplicate) return;
|
|
184
|
+
if (node.parent.type === AST_NODE_TYPES.ImportSpecifier && node.parent.imported === node && node.parent.imported.name === node.parent.local.name) return;
|
|
186
185
|
const name$2 = node.name;
|
|
187
186
|
const initialScope = context.sourceCode.getScope(node);
|
|
188
187
|
if (!isFromReact(node, importSource, initialScope)) return;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "eslint-plugin-react-debug",
|
|
3
|
-
"version": "1.53.1-next.
|
|
3
|
+
"version": "1.53.1-next.1",
|
|
4
4
|
"description": "ESLint React's ESLint plugin for debugging related rules.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"react",
|
|
@@ -43,23 +43,23 @@
|
|
|
43
43
|
"./package.json"
|
|
44
44
|
],
|
|
45
45
|
"dependencies": {
|
|
46
|
-
"@typescript-eslint/scope-manager": "^8.
|
|
47
|
-
"@typescript-eslint/type-utils": "^8.
|
|
48
|
-
"@typescript-eslint/types": "^8.
|
|
49
|
-
"@typescript-eslint/utils": "^8.
|
|
46
|
+
"@typescript-eslint/scope-manager": "^8.43.0",
|
|
47
|
+
"@typescript-eslint/type-utils": "^8.43.0",
|
|
48
|
+
"@typescript-eslint/types": "^8.43.0",
|
|
49
|
+
"@typescript-eslint/utils": "^8.43.0",
|
|
50
50
|
"string-ts": "^2.2.1",
|
|
51
51
|
"ts-pattern": "^5.8.0",
|
|
52
|
-
"@eslint-react/ast": "1.53.1-next.
|
|
53
|
-
"@eslint-react/
|
|
54
|
-
"@eslint-react/
|
|
55
|
-
"@eslint-react/
|
|
56
|
-
"@eslint-react/
|
|
57
|
-
"@eslint-react/
|
|
52
|
+
"@eslint-react/ast": "1.53.1-next.1",
|
|
53
|
+
"@eslint-react/core": "1.53.1-next.1",
|
|
54
|
+
"@eslint-react/eff": "1.53.1-next.1",
|
|
55
|
+
"@eslint-react/kit": "1.53.1-next.1",
|
|
56
|
+
"@eslint-react/var": "1.53.1-next.1",
|
|
57
|
+
"@eslint-react/shared": "1.53.1-next.1"
|
|
58
58
|
},
|
|
59
59
|
"devDependencies": {
|
|
60
60
|
"@types/react": "^19.1.12",
|
|
61
61
|
"@types/react-dom": "^19.1.9",
|
|
62
|
-
"tsdown": "^0.
|
|
62
|
+
"tsdown": "^0.15.0",
|
|
63
63
|
"@local/configs": "0.0.0"
|
|
64
64
|
},
|
|
65
65
|
"peerDependencies": {
|