@meteorlxy/eslint-config 6.12.0 → 6.13.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.d.cts +25 -25
- package/dist/index.d.mts +25 -25
- package/package.json +13 -11
package/dist/index.d.cts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Config } from "eslint/config";
|
|
2
2
|
import { FlatGitignoreOptions } from "eslint-config-flat-gitignore";
|
|
3
3
|
|
|
4
4
|
//#region \0rolldown/runtime.js
|
|
5
5
|
//#endregion
|
|
6
6
|
//#region src/configs/ignores.d.ts
|
|
7
7
|
interface EslintIgnoresOptions {
|
|
8
|
-
files?:
|
|
8
|
+
files?: Config['ignores'];
|
|
9
9
|
gitignore?: FlatGitignoreOptions;
|
|
10
10
|
}
|
|
11
11
|
/**
|
|
@@ -14,11 +14,11 @@ interface EslintIgnoresOptions {
|
|
|
14
14
|
declare const ignores$1: ({
|
|
15
15
|
files,
|
|
16
16
|
gitignore
|
|
17
|
-
}?: EslintIgnoresOptions) => Promise<
|
|
17
|
+
}?: EslintIgnoresOptions) => Promise<Config[]>;
|
|
18
18
|
//#endregion
|
|
19
19
|
//#region src/configs/imports.d.ts
|
|
20
20
|
interface EslintImportsOptions {
|
|
21
|
-
overrides?:
|
|
21
|
+
overrides?: Config['rules'];
|
|
22
22
|
packageDir?: string[] | string;
|
|
23
23
|
}
|
|
24
24
|
/**
|
|
@@ -27,23 +27,23 @@ interface EslintImportsOptions {
|
|
|
27
27
|
declare const imports$1: ({
|
|
28
28
|
overrides,
|
|
29
29
|
packageDir
|
|
30
|
-
}?: EslintImportsOptions) =>
|
|
30
|
+
}?: EslintImportsOptions) => Config[];
|
|
31
31
|
//#endregion
|
|
32
32
|
//#region src/configs/javascript.d.ts
|
|
33
33
|
interface EslintJavascriptOptions {
|
|
34
|
-
overrides?:
|
|
34
|
+
overrides?: Config['rules'];
|
|
35
35
|
}
|
|
36
36
|
/**
|
|
37
37
|
* Javascript configuration for eslint.
|
|
38
38
|
*/
|
|
39
39
|
declare const javascript$1: ({
|
|
40
40
|
overrides
|
|
41
|
-
}?: EslintJavascriptOptions) =>
|
|
41
|
+
}?: EslintJavascriptOptions) => Config[];
|
|
42
42
|
//#endregion
|
|
43
43
|
//#region src/configs/jsonc.d.ts
|
|
44
44
|
interface EslintJsoncOptions {
|
|
45
|
-
files?:
|
|
46
|
-
overrides?:
|
|
45
|
+
files?: Config['files'];
|
|
46
|
+
overrides?: Config['rules'];
|
|
47
47
|
}
|
|
48
48
|
/**
|
|
49
49
|
* JSONC configuration for eslint.
|
|
@@ -51,13 +51,13 @@ interface EslintJsoncOptions {
|
|
|
51
51
|
declare const jsonc$1: ({
|
|
52
52
|
files,
|
|
53
53
|
overrides
|
|
54
|
-
}?: EslintJsoncOptions) => Promise<
|
|
54
|
+
}?: EslintJsoncOptions) => Promise<Config[]>;
|
|
55
55
|
//#endregion
|
|
56
56
|
//#region src/configs/markdown.d.ts
|
|
57
57
|
interface EslintMarkdownOptions {
|
|
58
|
-
files?:
|
|
59
|
-
overrides?:
|
|
60
|
-
overridesCodeBlocks?:
|
|
58
|
+
files?: Config['files'];
|
|
59
|
+
overrides?: Config['rules'];
|
|
60
|
+
overridesCodeBlocks?: Config['rules'];
|
|
61
61
|
}
|
|
62
62
|
/**
|
|
63
63
|
* Markdown configuration for eslint.
|
|
@@ -66,18 +66,18 @@ declare const markdown$1: ({
|
|
|
66
66
|
files,
|
|
67
67
|
overrides,
|
|
68
68
|
overridesCodeBlocks
|
|
69
|
-
}?: EslintMarkdownOptions) => Promise<
|
|
69
|
+
}?: EslintMarkdownOptions) => Promise<Config[]>;
|
|
70
70
|
//#endregion
|
|
71
71
|
//#region src/configs/prettier.d.ts
|
|
72
72
|
/**
|
|
73
73
|
* Prettier configuration for eslint.
|
|
74
74
|
*/
|
|
75
|
-
declare const prettier: () =>
|
|
75
|
+
declare const prettier: () => Config[];
|
|
76
76
|
//#endregion
|
|
77
77
|
//#region src/configs/react.d.ts
|
|
78
78
|
interface EslintReactOptions {
|
|
79
|
-
files?:
|
|
80
|
-
overrides?:
|
|
79
|
+
files?: Config['files'];
|
|
80
|
+
overrides?: Config['rules'];
|
|
81
81
|
}
|
|
82
82
|
/**
|
|
83
83
|
* React configuration for eslint.
|
|
@@ -85,12 +85,12 @@ interface EslintReactOptions {
|
|
|
85
85
|
declare const react$1: ({
|
|
86
86
|
files,
|
|
87
87
|
overrides
|
|
88
|
-
}?: EslintReactOptions) => Promise<
|
|
88
|
+
}?: EslintReactOptions) => Promise<Config[]>;
|
|
89
89
|
//#endregion
|
|
90
90
|
//#region src/configs/typescript.d.ts
|
|
91
91
|
interface EslintTypescriptOptions {
|
|
92
|
-
files?:
|
|
93
|
-
overrides?:
|
|
92
|
+
files?: Config['files'];
|
|
93
|
+
overrides?: Config['rules'];
|
|
94
94
|
}
|
|
95
95
|
/**
|
|
96
96
|
* Typescript configuration for eslint.
|
|
@@ -98,12 +98,12 @@ interface EslintTypescriptOptions {
|
|
|
98
98
|
declare const typescript$1: ({
|
|
99
99
|
files,
|
|
100
100
|
overrides
|
|
101
|
-
}?: EslintTypescriptOptions) =>
|
|
101
|
+
}?: EslintTypescriptOptions) => Config[];
|
|
102
102
|
//#endregion
|
|
103
103
|
//#region src/configs/vue.d.ts
|
|
104
104
|
interface EslintVueOptions {
|
|
105
|
-
files?:
|
|
106
|
-
overrides?:
|
|
105
|
+
files?: Config['files'];
|
|
106
|
+
overrides?: Config['rules'];
|
|
107
107
|
}
|
|
108
108
|
/**
|
|
109
109
|
* Vue configuration for eslint.
|
|
@@ -111,7 +111,7 @@ interface EslintVueOptions {
|
|
|
111
111
|
declare const vue$1: ({
|
|
112
112
|
files,
|
|
113
113
|
overrides
|
|
114
|
-
}?: EslintVueOptions) => Promise<
|
|
114
|
+
}?: EslintVueOptions) => Promise<Config[]>;
|
|
115
115
|
declare namespace index_d_exports {
|
|
116
116
|
export { EslintIgnoresOptions, EslintImportsOptions, EslintJavascriptOptions, EslintJsoncOptions, EslintMarkdownOptions, EslintReactOptions, EslintTypescriptOptions, EslintVueOptions, ignores$1 as ignores, imports$1 as imports, javascript$1 as javascript, jsonc$1 as jsonc, markdown$1 as markdown, prettier, react$1 as react, typescript$1 as typescript, vue$1 as vue };
|
|
117
117
|
}
|
|
@@ -1597,6 +1597,6 @@ declare const meteorlxy: ({
|
|
|
1597
1597
|
react,
|
|
1598
1598
|
typescript,
|
|
1599
1599
|
vue
|
|
1600
|
-
}?: EslintOptions, ...customConfigs:
|
|
1600
|
+
}?: EslintOptions, ...customConfigs: Config[]) => Promise<Config[]>;
|
|
1601
1601
|
//#endregion
|
|
1602
1602
|
export { EslintOptions, index_d_exports as configs, env_d_exports as env, meteorlxy, index_d_exports$1 as rules, utils_d_exports as utils };
|
package/dist/index.d.mts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { FlatGitignoreOptions } from "eslint-config-flat-gitignore";
|
|
2
|
-
import {
|
|
2
|
+
import { Config } from "eslint/config";
|
|
3
3
|
|
|
4
4
|
//#region src/configs/ignores.d.ts
|
|
5
5
|
interface EslintIgnoresOptions {
|
|
6
|
-
files?:
|
|
6
|
+
files?: Config['ignores'];
|
|
7
7
|
gitignore?: FlatGitignoreOptions;
|
|
8
8
|
}
|
|
9
9
|
/**
|
|
@@ -12,11 +12,11 @@ interface EslintIgnoresOptions {
|
|
|
12
12
|
declare const ignores$1: ({
|
|
13
13
|
files,
|
|
14
14
|
gitignore
|
|
15
|
-
}?: EslintIgnoresOptions) => Promise<
|
|
15
|
+
}?: EslintIgnoresOptions) => Promise<Config[]>;
|
|
16
16
|
//#endregion
|
|
17
17
|
//#region src/configs/imports.d.ts
|
|
18
18
|
interface EslintImportsOptions {
|
|
19
|
-
overrides?:
|
|
19
|
+
overrides?: Config['rules'];
|
|
20
20
|
packageDir?: string[] | string;
|
|
21
21
|
}
|
|
22
22
|
/**
|
|
@@ -25,23 +25,23 @@ interface EslintImportsOptions {
|
|
|
25
25
|
declare const imports$1: ({
|
|
26
26
|
overrides,
|
|
27
27
|
packageDir
|
|
28
|
-
}?: EslintImportsOptions) =>
|
|
28
|
+
}?: EslintImportsOptions) => Config[];
|
|
29
29
|
//#endregion
|
|
30
30
|
//#region src/configs/javascript.d.ts
|
|
31
31
|
interface EslintJavascriptOptions {
|
|
32
|
-
overrides?:
|
|
32
|
+
overrides?: Config['rules'];
|
|
33
33
|
}
|
|
34
34
|
/**
|
|
35
35
|
* Javascript configuration for eslint.
|
|
36
36
|
*/
|
|
37
37
|
declare const javascript$1: ({
|
|
38
38
|
overrides
|
|
39
|
-
}?: EslintJavascriptOptions) =>
|
|
39
|
+
}?: EslintJavascriptOptions) => Config[];
|
|
40
40
|
//#endregion
|
|
41
41
|
//#region src/configs/jsonc.d.ts
|
|
42
42
|
interface EslintJsoncOptions {
|
|
43
|
-
files?:
|
|
44
|
-
overrides?:
|
|
43
|
+
files?: Config['files'];
|
|
44
|
+
overrides?: Config['rules'];
|
|
45
45
|
}
|
|
46
46
|
/**
|
|
47
47
|
* JSONC configuration for eslint.
|
|
@@ -49,13 +49,13 @@ interface EslintJsoncOptions {
|
|
|
49
49
|
declare const jsonc$1: ({
|
|
50
50
|
files,
|
|
51
51
|
overrides
|
|
52
|
-
}?: EslintJsoncOptions) => Promise<
|
|
52
|
+
}?: EslintJsoncOptions) => Promise<Config[]>;
|
|
53
53
|
//#endregion
|
|
54
54
|
//#region src/configs/markdown.d.ts
|
|
55
55
|
interface EslintMarkdownOptions {
|
|
56
|
-
files?:
|
|
57
|
-
overrides?:
|
|
58
|
-
overridesCodeBlocks?:
|
|
56
|
+
files?: Config['files'];
|
|
57
|
+
overrides?: Config['rules'];
|
|
58
|
+
overridesCodeBlocks?: Config['rules'];
|
|
59
59
|
}
|
|
60
60
|
/**
|
|
61
61
|
* Markdown configuration for eslint.
|
|
@@ -64,18 +64,18 @@ declare const markdown$1: ({
|
|
|
64
64
|
files,
|
|
65
65
|
overrides,
|
|
66
66
|
overridesCodeBlocks
|
|
67
|
-
}?: EslintMarkdownOptions) => Promise<
|
|
67
|
+
}?: EslintMarkdownOptions) => Promise<Config[]>;
|
|
68
68
|
//#endregion
|
|
69
69
|
//#region src/configs/prettier.d.ts
|
|
70
70
|
/**
|
|
71
71
|
* Prettier configuration for eslint.
|
|
72
72
|
*/
|
|
73
|
-
declare const prettier: () =>
|
|
73
|
+
declare const prettier: () => Config[];
|
|
74
74
|
//#endregion
|
|
75
75
|
//#region src/configs/react.d.ts
|
|
76
76
|
interface EslintReactOptions {
|
|
77
|
-
files?:
|
|
78
|
-
overrides?:
|
|
77
|
+
files?: Config['files'];
|
|
78
|
+
overrides?: Config['rules'];
|
|
79
79
|
}
|
|
80
80
|
/**
|
|
81
81
|
* React configuration for eslint.
|
|
@@ -83,12 +83,12 @@ interface EslintReactOptions {
|
|
|
83
83
|
declare const react$1: ({
|
|
84
84
|
files,
|
|
85
85
|
overrides
|
|
86
|
-
}?: EslintReactOptions) => Promise<
|
|
86
|
+
}?: EslintReactOptions) => Promise<Config[]>;
|
|
87
87
|
//#endregion
|
|
88
88
|
//#region src/configs/typescript.d.ts
|
|
89
89
|
interface EslintTypescriptOptions {
|
|
90
|
-
files?:
|
|
91
|
-
overrides?:
|
|
90
|
+
files?: Config['files'];
|
|
91
|
+
overrides?: Config['rules'];
|
|
92
92
|
}
|
|
93
93
|
/**
|
|
94
94
|
* Typescript configuration for eslint.
|
|
@@ -96,12 +96,12 @@ interface EslintTypescriptOptions {
|
|
|
96
96
|
declare const typescript$1: ({
|
|
97
97
|
files,
|
|
98
98
|
overrides
|
|
99
|
-
}?: EslintTypescriptOptions) =>
|
|
99
|
+
}?: EslintTypescriptOptions) => Config[];
|
|
100
100
|
//#endregion
|
|
101
101
|
//#region src/configs/vue.d.ts
|
|
102
102
|
interface EslintVueOptions {
|
|
103
|
-
files?:
|
|
104
|
-
overrides?:
|
|
103
|
+
files?: Config['files'];
|
|
104
|
+
overrides?: Config['rules'];
|
|
105
105
|
}
|
|
106
106
|
/**
|
|
107
107
|
* Vue configuration for eslint.
|
|
@@ -109,7 +109,7 @@ interface EslintVueOptions {
|
|
|
109
109
|
declare const vue$1: ({
|
|
110
110
|
files,
|
|
111
111
|
overrides
|
|
112
|
-
}?: EslintVueOptions) => Promise<
|
|
112
|
+
}?: EslintVueOptions) => Promise<Config[]>;
|
|
113
113
|
declare namespace index_d_exports {
|
|
114
114
|
export { EslintIgnoresOptions, EslintImportsOptions, EslintJavascriptOptions, EslintJsoncOptions, EslintMarkdownOptions, EslintReactOptions, EslintTypescriptOptions, EslintVueOptions, ignores$1 as ignores, imports$1 as imports, javascript$1 as javascript, jsonc$1 as jsonc, markdown$1 as markdown, prettier, react$1 as react, typescript$1 as typescript, vue$1 as vue };
|
|
115
115
|
}
|
|
@@ -1595,6 +1595,6 @@ declare const meteorlxy: ({
|
|
|
1595
1595
|
react,
|
|
1596
1596
|
typescript,
|
|
1597
1597
|
vue
|
|
1598
|
-
}?: EslintOptions, ...customConfigs:
|
|
1598
|
+
}?: EslintOptions, ...customConfigs: Config[]) => Promise<Config[]>;
|
|
1599
1599
|
//#endregion
|
|
1600
1600
|
export { EslintOptions, index_d_exports as configs, env_d_exports as env, meteorlxy, index_d_exports$1 as rules, utils_d_exports as utils };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@meteorlxy/eslint-config",
|
|
3
|
-
"version": "6.
|
|
3
|
+
"version": "6.13.0",
|
|
4
4
|
"description": "meteorlxy eslint config",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"config",
|
|
@@ -29,32 +29,34 @@
|
|
|
29
29
|
"./dist"
|
|
30
30
|
],
|
|
31
31
|
"dependencies": {
|
|
32
|
+
"@eslint/core": "^0.17.0",
|
|
32
33
|
"@eslint/markdown": "^7.5.1",
|
|
33
|
-
"@typescript-eslint/eslint-plugin": "^8.
|
|
34
|
-
"@typescript-eslint/parser": "^8.
|
|
35
|
-
"@typescript-eslint/utils": "^8.
|
|
34
|
+
"@typescript-eslint/eslint-plugin": "^8.56.1",
|
|
35
|
+
"@typescript-eslint/parser": "^8.56.1",
|
|
36
|
+
"@typescript-eslint/utils": "^8.56.1",
|
|
36
37
|
"confusing-browser-globals": "^1.0.11",
|
|
37
|
-
"eslint-config-flat-gitignore": "^2.1
|
|
38
|
+
"eslint-config-flat-gitignore": "^2.2.1",
|
|
38
39
|
"eslint-config-prettier": "^10.1.8",
|
|
39
40
|
"eslint-merge-processors": "^2.0.0",
|
|
40
41
|
"eslint-plugin-eslint-comments": "^3.2.0",
|
|
41
42
|
"eslint-plugin-import-x": "^4.16.1",
|
|
42
|
-
"eslint-plugin-jsonc": "^
|
|
43
|
+
"eslint-plugin-jsonc": "^3.1.0",
|
|
43
44
|
"globals": "^17.3.0",
|
|
44
|
-
"jsonc-eslint-parser": "^
|
|
45
|
+
"jsonc-eslint-parser": "^3.1.0"
|
|
45
46
|
},
|
|
46
47
|
"devDependencies": {
|
|
47
48
|
"@types/confusing-browser-globals": "^1.0.3",
|
|
48
49
|
"@types/eslint": "^9.6.1",
|
|
49
|
-
"eslint": "^9.39.
|
|
50
|
+
"eslint": "^9.39.3",
|
|
50
51
|
"eslint-plugin-react": "^7.37.5",
|
|
51
52
|
"eslint-plugin-react-hooks": "^7.0.1",
|
|
52
|
-
"eslint-plugin-react-refresh": "^0.5.
|
|
53
|
-
"eslint-plugin-vue": "^10.
|
|
53
|
+
"eslint-plugin-react-refresh": "^0.5.2",
|
|
54
|
+
"eslint-plugin-vue": "^10.8.0",
|
|
54
55
|
"tsdown": "^0.20.3",
|
|
55
|
-
"vue-eslint-parser": "^10.
|
|
56
|
+
"vue-eslint-parser": "^10.4.0"
|
|
56
57
|
},
|
|
57
58
|
"peerDependencies": {
|
|
59
|
+
"eslint": "^9.39.2",
|
|
58
60
|
"eslint-plugin-react": "^7.37.5",
|
|
59
61
|
"eslint-plugin-react-hooks": "^5.2.0",
|
|
60
62
|
"eslint-plugin-react-refresh": "^0.4.19",
|