eslint-plugin-react-debug 5.28.8 → 5.30.0-beta.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.d.ts +0 -2
- package/dist/index.js +9 -17
- package/package.json +8 -8
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -10,7 +10,7 @@ import { findVariable } from "@typescript-eslint/utils/ast-utils";
|
|
|
10
10
|
import { getElementFullType, isFragmentElement } from "@eslint-react/jsx";
|
|
11
11
|
import { P, match } from "ts-pattern";
|
|
12
12
|
import ts from "typescript";
|
|
13
|
-
|
|
13
|
+
// \0rolldown/runtime.js
|
|
14
14
|
var __defProp = Object.defineProperty;
|
|
15
15
|
var __exportAll = (all, no_symbols) => {
|
|
16
16
|
let target = {};
|
|
@@ -21,12 +21,10 @@ var __exportAll = (all, no_symbols) => {
|
|
|
21
21
|
if (!no_symbols) __defProp(target, Symbol.toStringTag, { value: "Module" });
|
|
22
22
|
return target;
|
|
23
23
|
};
|
|
24
|
-
|
|
25
|
-
//#region package.json
|
|
24
|
+
// package.json
|
|
26
25
|
var name$1 = "eslint-plugin-react-debug";
|
|
27
|
-
var version = "5.
|
|
28
|
-
|
|
29
|
-
//#region src/utils/create-rule.ts
|
|
26
|
+
var version = "5.30.0-beta.1";
|
|
27
|
+
// src/utils/create-rule.ts
|
|
30
28
|
function getDocsUrl(ruleName) {
|
|
31
29
|
return `https://eslint-react.xyz/docs/rules/debug-${ruleName}`;
|
|
32
30
|
}
|
|
@@ -83,8 +81,7 @@ function create$3(context) {
|
|
|
83
81
|
});
|
|
84
82
|
} });
|
|
85
83
|
}
|
|
86
|
-
|
|
87
|
-
//#region src/rules/is-from-react/lib.ts
|
|
84
|
+
// src/rules/is-from-react/lib.ts
|
|
88
85
|
function isFromReact(node, initialScope, importSource = "react") {
|
|
89
86
|
const name = node.name;
|
|
90
87
|
switch (true) {
|
|
@@ -123,8 +120,7 @@ function create$2(context) {
|
|
|
123
120
|
JSXIdentifier: visit
|
|
124
121
|
};
|
|
125
122
|
}
|
|
126
|
-
|
|
127
|
-
//#region src/rules/is-from-ref/lib.ts
|
|
123
|
+
// src/rules/is-from-ref/lib.ts
|
|
128
124
|
function getRefInitNode(context, node, initialScope) {
|
|
129
125
|
const name = node.name;
|
|
130
126
|
switch (true) {
|
|
@@ -206,8 +202,7 @@ function create(context) {
|
|
|
206
202
|
JSXFragment: visit
|
|
207
203
|
};
|
|
208
204
|
}
|
|
209
|
-
|
|
210
|
-
//#region src/plugin.ts
|
|
205
|
+
// src/plugin.ts
|
|
211
206
|
const plugin = {
|
|
212
207
|
meta: {
|
|
213
208
|
name: name$1,
|
|
@@ -221,8 +216,7 @@ const plugin = {
|
|
|
221
216
|
["jsx"]: jsx_default
|
|
222
217
|
}
|
|
223
218
|
};
|
|
224
|
-
|
|
225
|
-
//#region src/configs/all.ts
|
|
219
|
+
// src/configs/all.ts
|
|
226
220
|
var all_exports = /* @__PURE__ */ __exportAll({
|
|
227
221
|
name: () => name,
|
|
228
222
|
plugins: () => plugins,
|
|
@@ -239,8 +233,7 @@ const rules = {
|
|
|
239
233
|
};
|
|
240
234
|
const plugins = { "react-debug": plugin };
|
|
241
235
|
const settings = { "react-x": DEFAULT_ESLINT_REACT_SETTINGS };
|
|
242
|
-
|
|
243
|
-
//#region src/index.ts
|
|
236
|
+
// src/index.ts
|
|
244
237
|
function createConfig(base) {
|
|
245
238
|
return {
|
|
246
239
|
...base,
|
|
@@ -256,5 +249,4 @@ const finalPlugin = {
|
|
|
256
249
|
...plugin,
|
|
257
250
|
configs: { ["all"]: createConfig(all_exports) }
|
|
258
251
|
};
|
|
259
|
-
//#endregion
|
|
260
252
|
export { finalPlugin as default };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "eslint-plugin-react-debug",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.30.0-beta.1",
|
|
4
4
|
"description": "ESLint React's ESLint plugin for debugging related rules.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"react",
|
|
@@ -37,12 +37,12 @@
|
|
|
37
37
|
"dist"
|
|
38
38
|
],
|
|
39
39
|
"dependencies": {
|
|
40
|
-
"@eslint-react/ast": "5.
|
|
41
|
-
"@eslint-react/core": "5.
|
|
42
|
-
"@eslint-react/eslint": "5.
|
|
43
|
-
"@eslint-react/jsx": "5.
|
|
44
|
-
"@eslint-react/shared": "5.
|
|
45
|
-
"@eslint-react/var": "5.
|
|
40
|
+
"@eslint-react/ast": "5.30.0-beta.1",
|
|
41
|
+
"@eslint-react/core": "5.30.0-beta.1",
|
|
42
|
+
"@eslint-react/eslint": "5.30.0-beta.1",
|
|
43
|
+
"@eslint-react/jsx": "5.30.0-beta.1",
|
|
44
|
+
"@eslint-react/shared": "5.30.0-beta.1",
|
|
45
|
+
"@eslint-react/var": "5.30.0-beta.1",
|
|
46
46
|
"@typescript-eslint/scope-manager": "^8.72.0",
|
|
47
47
|
"@typescript-eslint/types": "^8.72.0",
|
|
48
48
|
"@typescript-eslint/utils": "^8.72.0",
|
|
@@ -57,7 +57,7 @@
|
|
|
57
57
|
"@types/react-dom": "^19.3.0",
|
|
58
58
|
"dedent": "^1.7.2",
|
|
59
59
|
"eslint": "^10.13.0",
|
|
60
|
-
"tsdown": "^0.23.
|
|
60
|
+
"tsdown": "^0.23.2",
|
|
61
61
|
"typescript": "6.0.3"
|
|
62
62
|
},
|
|
63
63
|
"peerDependencies": {
|