eslint-plugin-react-debug 2.0.0-next.153 → 2.0.0-next.154
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 +7 -25
- package/dist/index.js +5 -5
- package/package.json +9 -9
package/dist/index.d.ts
CHANGED
|
@@ -1,27 +1,15 @@
|
|
|
1
|
+
import * as _eslint_react_shared0 from "@eslint-react/shared";
|
|
1
2
|
import { RulePreset } from "@eslint-react/kit";
|
|
2
|
-
import * as _typescript_eslint_utils_ts_eslint0 from "@typescript-eslint/utils/ts-eslint";
|
|
3
3
|
|
|
4
4
|
//#region src/index.d.ts
|
|
5
5
|
declare const _default: {
|
|
6
6
|
configs: {
|
|
7
7
|
all: {
|
|
8
8
|
plugins: {
|
|
9
|
-
"react-debug":
|
|
10
|
-
readonly meta: {
|
|
11
|
-
readonly name: string;
|
|
12
|
-
readonly version: string;
|
|
13
|
-
};
|
|
14
|
-
readonly rules: {
|
|
15
|
-
readonly "class-component": _typescript_eslint_utils_ts_eslint0.RuleModule<"classComponent", [], unknown, _typescript_eslint_utils_ts_eslint0.RuleListener>;
|
|
16
|
-
readonly "function-component": _typescript_eslint_utils_ts_eslint0.RuleModule<"functionComponent", [], unknown, _typescript_eslint_utils_ts_eslint0.RuleListener>;
|
|
17
|
-
readonly hook: _typescript_eslint_utils_ts_eslint0.RuleModule<"hook", [], unknown, _typescript_eslint_utils_ts_eslint0.RuleListener>;
|
|
18
|
-
readonly "is-from-react": _typescript_eslint_utils_ts_eslint0.RuleModule<"isFromReact", [], unknown, _typescript_eslint_utils_ts_eslint0.RuleListener>;
|
|
19
|
-
readonly jsx: _typescript_eslint_utils_ts_eslint0.RuleModule<"jsx", [], unknown, _typescript_eslint_utils_ts_eslint0.RuleListener>;
|
|
20
|
-
};
|
|
21
|
-
};
|
|
9
|
+
"react-debug": _eslint_react_shared0.CompatiblePlugin;
|
|
22
10
|
};
|
|
23
|
-
name
|
|
24
|
-
rules
|
|
11
|
+
name?: string;
|
|
12
|
+
rules?: Record<string, any>;
|
|
25
13
|
};
|
|
26
14
|
"all-legacy": {
|
|
27
15
|
plugins: string[];
|
|
@@ -29,16 +17,10 @@ declare const _default: {
|
|
|
29
17
|
};
|
|
30
18
|
};
|
|
31
19
|
meta: {
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
};
|
|
35
|
-
rules: {
|
|
36
|
-
readonly "class-component": _typescript_eslint_utils_ts_eslint0.RuleModule<"classComponent", [], unknown, _typescript_eslint_utils_ts_eslint0.RuleListener>;
|
|
37
|
-
readonly "function-component": _typescript_eslint_utils_ts_eslint0.RuleModule<"functionComponent", [], unknown, _typescript_eslint_utils_ts_eslint0.RuleListener>;
|
|
38
|
-
readonly hook: _typescript_eslint_utils_ts_eslint0.RuleModule<"hook", [], unknown, _typescript_eslint_utils_ts_eslint0.RuleListener>;
|
|
39
|
-
readonly "is-from-react": _typescript_eslint_utils_ts_eslint0.RuleModule<"isFromReact", [], unknown, _typescript_eslint_utils_ts_eslint0.RuleListener>;
|
|
40
|
-
readonly jsx: _typescript_eslint_utils_ts_eslint0.RuleModule<"jsx", [], unknown, _typescript_eslint_utils_ts_eslint0.RuleListener>;
|
|
20
|
+
name: string;
|
|
21
|
+
version: string;
|
|
41
22
|
};
|
|
23
|
+
rules: Record<string, any>;
|
|
42
24
|
};
|
|
43
25
|
//#endregion
|
|
44
26
|
export { _default as default };
|
package/dist/index.js
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 = "2.0.0-next.
|
|
39
|
+
var version = "2.0.0-next.154";
|
|
40
40
|
|
|
41
41
|
//#endregion
|
|
42
42
|
//#region src/utils/create-rule.ts
|
|
@@ -278,13 +278,13 @@ const plugin = {
|
|
|
278
278
|
|
|
279
279
|
//#endregion
|
|
280
280
|
//#region src/index.ts
|
|
281
|
-
function
|
|
281
|
+
function toFlatConfig(config) {
|
|
282
282
|
return {
|
|
283
283
|
...config,
|
|
284
284
|
plugins: { "react-debug": plugin }
|
|
285
285
|
};
|
|
286
286
|
}
|
|
287
|
-
function
|
|
287
|
+
function toLegacyConfig({ rules: rules$1 }) {
|
|
288
288
|
return {
|
|
289
289
|
plugins: ["react-debug"],
|
|
290
290
|
rules: rules$1
|
|
@@ -293,8 +293,8 @@ function makeLegacyConfig({ rules: rules$1 }) {
|
|
|
293
293
|
var src_default = {
|
|
294
294
|
...plugin,
|
|
295
295
|
configs: {
|
|
296
|
-
["all"]:
|
|
297
|
-
["all-legacy"]:
|
|
296
|
+
["all"]: toFlatConfig(all_exports),
|
|
297
|
+
["all-legacy"]: toLegacyConfig(all_exports)
|
|
298
298
|
}
|
|
299
299
|
};
|
|
300
300
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "eslint-plugin-react-debug",
|
|
3
|
-
"version": "2.0.0-next.
|
|
3
|
+
"version": "2.0.0-next.154",
|
|
4
4
|
"description": "ESLint React's ESLint plugin for debugging related rules.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"react",
|
|
@@ -41,16 +41,16 @@
|
|
|
41
41
|
"@typescript-eslint/utils": "^8.41.0",
|
|
42
42
|
"string-ts": "^2.2.1",
|
|
43
43
|
"ts-pattern": "^5.8.0",
|
|
44
|
-
"@eslint-react/
|
|
45
|
-
"@eslint-react/
|
|
46
|
-
"@eslint-react/
|
|
47
|
-
"@eslint-react/kit": "2.0.0-next.
|
|
48
|
-
"@eslint-react/shared": "2.0.0-next.
|
|
49
|
-
"@eslint-react/var": "2.0.0-next.
|
|
44
|
+
"@eslint-react/ast": "2.0.0-next.154",
|
|
45
|
+
"@eslint-react/eff": "2.0.0-next.154",
|
|
46
|
+
"@eslint-react/core": "2.0.0-next.154",
|
|
47
|
+
"@eslint-react/kit": "2.0.0-next.154",
|
|
48
|
+
"@eslint-react/shared": "2.0.0-next.154",
|
|
49
|
+
"@eslint-react/var": "2.0.0-next.154"
|
|
50
50
|
},
|
|
51
51
|
"devDependencies": {
|
|
52
52
|
"@types/react": "^19.1.12",
|
|
53
|
-
"@types/react-dom": "^19.1.
|
|
53
|
+
"@types/react-dom": "^19.1.9",
|
|
54
54
|
"tsdown": "^0.14.2",
|
|
55
55
|
"@local/configs": "0.0.0"
|
|
56
56
|
},
|
|
@@ -73,7 +73,7 @@
|
|
|
73
73
|
"access": "public"
|
|
74
74
|
},
|
|
75
75
|
"scripts": {
|
|
76
|
-
"build": "tsdown
|
|
76
|
+
"build": "tsdown",
|
|
77
77
|
"lint:publish": "publint",
|
|
78
78
|
"lint:ts": "tsc --noEmit"
|
|
79
79
|
}
|