@coderwyd/eslint-config 1.1.0-beta.0 → 1.1.0-beta.2
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/README.md +230 -51
- package/dist/index.cjs +1624 -0
- package/dist/index.d.cts +230 -0
- package/dist/index.d.ts +107 -31
- package/dist/index.js +908 -702
- package/package.json +26 -21
package/dist/index.d.cts
ADDED
|
@@ -0,0 +1,230 @@
|
|
|
1
|
+
import { FlatESLintConfigItem } from 'eslint-define-config';
|
|
2
|
+
import { FlatGitignoreOptions } from 'eslint-config-flat-gitignore';
|
|
3
|
+
import { ParserOptions } from '@typescript-eslint/parser';
|
|
4
|
+
export { default as parserTs } from '@typescript-eslint/parser';
|
|
5
|
+
export { default as pluginAntfu } from 'eslint-plugin-antfu';
|
|
6
|
+
export { default as pluginComments } from 'eslint-plugin-eslint-comments';
|
|
7
|
+
export { default as pluginImport } from 'eslint-plugin-i';
|
|
8
|
+
export { default as pluginJsdoc } from 'eslint-plugin-jsdoc';
|
|
9
|
+
export { default as pluginJsonc } from 'eslint-plugin-jsonc';
|
|
10
|
+
export { default as pluginMarkdown } from 'eslint-plugin-markdown';
|
|
11
|
+
export { default as pluginNode } from 'eslint-plugin-n';
|
|
12
|
+
export { default as pluginStylistic } from '@stylistic/eslint-plugin';
|
|
13
|
+
export { default as pluginTs } from '@typescript-eslint/eslint-plugin';
|
|
14
|
+
export { default as pluginUnicorn } from 'eslint-plugin-unicorn';
|
|
15
|
+
export { default as pluginUnusedImports } from 'eslint-plugin-unused-imports';
|
|
16
|
+
export { default as pluginVue } from 'eslint-plugin-vue';
|
|
17
|
+
export { default as pluginYaml } from 'eslint-plugin-yml';
|
|
18
|
+
export { default as pluginNoOnlyTests } from 'eslint-plugin-no-only-tests';
|
|
19
|
+
export { default as pluginReact } from 'eslint-plugin-react';
|
|
20
|
+
export { default as pluginReactHooks } from 'eslint-plugin-react-hooks';
|
|
21
|
+
export { default as pluginAstro } from 'eslint-plugin-astro';
|
|
22
|
+
export { default as parserVue } from 'vue-eslint-parser';
|
|
23
|
+
export { default as parserYaml } from 'yaml-eslint-parser';
|
|
24
|
+
export { default as parserJsonc } from 'jsonc-eslint-parser';
|
|
25
|
+
export { default as parserAstro } from 'astro-eslint-parser';
|
|
26
|
+
|
|
27
|
+
interface OptionsComponentExts {
|
|
28
|
+
/**
|
|
29
|
+
* Additional extensions for components.
|
|
30
|
+
*
|
|
31
|
+
* @example ['vue']
|
|
32
|
+
* @default []
|
|
33
|
+
*/
|
|
34
|
+
componentExts?: string[];
|
|
35
|
+
}
|
|
36
|
+
interface OptionsTypeScriptParserOptions {
|
|
37
|
+
/**
|
|
38
|
+
* Additional parser options for TypeScript.
|
|
39
|
+
*/
|
|
40
|
+
parserOptions?: Partial<ParserOptions>;
|
|
41
|
+
}
|
|
42
|
+
interface OptionsTypeScriptWithTypes {
|
|
43
|
+
/**
|
|
44
|
+
* When this options is provided, type aware rules will be enabled.
|
|
45
|
+
* @see https://typescript-eslint.io/linting/typed-linting/
|
|
46
|
+
*/
|
|
47
|
+
tsconfigPath?: string;
|
|
48
|
+
}
|
|
49
|
+
interface OptionsHasTypeScript {
|
|
50
|
+
typescript?: boolean;
|
|
51
|
+
}
|
|
52
|
+
interface OptionsStylistic {
|
|
53
|
+
stylistic?: boolean;
|
|
54
|
+
}
|
|
55
|
+
interface OptionsOverrides {
|
|
56
|
+
overrides?: FlatESLintConfigItem['rules'];
|
|
57
|
+
}
|
|
58
|
+
interface OptionsIsInEditor {
|
|
59
|
+
isInEditor?: boolean;
|
|
60
|
+
}
|
|
61
|
+
interface OptionsConfig extends OptionsComponentExts {
|
|
62
|
+
/**
|
|
63
|
+
* Enable gitignore support.
|
|
64
|
+
*
|
|
65
|
+
* Passing an object to configure the options.
|
|
66
|
+
*
|
|
67
|
+
* @see https://github.com/antfu/eslint-config-flat-gitignore
|
|
68
|
+
* @default true
|
|
69
|
+
*/
|
|
70
|
+
gitignore?: boolean | FlatGitignoreOptions;
|
|
71
|
+
/**
|
|
72
|
+
* Enable TypeScript support.
|
|
73
|
+
*
|
|
74
|
+
* Passing an object to enable TypeScript Language Server support.
|
|
75
|
+
*
|
|
76
|
+
* @default auto-detect based on the dependencies
|
|
77
|
+
*/
|
|
78
|
+
typescript?: boolean | OptionsTypeScriptWithTypes;
|
|
79
|
+
/**
|
|
80
|
+
* Enable test support.
|
|
81
|
+
*
|
|
82
|
+
* @default true
|
|
83
|
+
*/
|
|
84
|
+
test?: boolean;
|
|
85
|
+
/**
|
|
86
|
+
* Enable Vue support.
|
|
87
|
+
*
|
|
88
|
+
* @default auto-detect based on the dependencies
|
|
89
|
+
*/
|
|
90
|
+
vue?: boolean;
|
|
91
|
+
/**
|
|
92
|
+
* Enable React support.
|
|
93
|
+
*
|
|
94
|
+
* @default auto-detect based on the dependencies
|
|
95
|
+
*/
|
|
96
|
+
react?: boolean;
|
|
97
|
+
/**
|
|
98
|
+
* Enable Astro support.
|
|
99
|
+
*
|
|
100
|
+
* @default auto-detect based on the dependencies
|
|
101
|
+
*/
|
|
102
|
+
astro?: boolean;
|
|
103
|
+
/**
|
|
104
|
+
* Enable JSONC support.
|
|
105
|
+
*
|
|
106
|
+
* @default true
|
|
107
|
+
*/
|
|
108
|
+
jsonc?: boolean;
|
|
109
|
+
/**
|
|
110
|
+
* Enable YAML support.
|
|
111
|
+
*
|
|
112
|
+
* @default true
|
|
113
|
+
*/
|
|
114
|
+
yaml?: boolean;
|
|
115
|
+
/**
|
|
116
|
+
* Enable Markdown support.
|
|
117
|
+
*
|
|
118
|
+
* @default true
|
|
119
|
+
*/
|
|
120
|
+
markdown?: boolean;
|
|
121
|
+
/**
|
|
122
|
+
* Enable stylistic rules.
|
|
123
|
+
*
|
|
124
|
+
* @default true
|
|
125
|
+
*/
|
|
126
|
+
stylistic?: boolean;
|
|
127
|
+
/**
|
|
128
|
+
* Control to disable some rules in editors.
|
|
129
|
+
* @default auto-detect based on the process.env
|
|
130
|
+
*/
|
|
131
|
+
isInEditor?: boolean;
|
|
132
|
+
/**
|
|
133
|
+
* Provide overrides for rules for each integration.
|
|
134
|
+
*/
|
|
135
|
+
overrides?: {
|
|
136
|
+
javascript?: FlatESLintConfigItem['rules'];
|
|
137
|
+
typescript?: FlatESLintConfigItem['rules'];
|
|
138
|
+
test?: FlatESLintConfigItem['rules'];
|
|
139
|
+
vue?: FlatESLintConfigItem['rules'];
|
|
140
|
+
react?: FlatESLintConfigItem['rules'];
|
|
141
|
+
astro?: FlatESLintConfigItem['rules'];
|
|
142
|
+
jsonc?: FlatESLintConfigItem['rules'];
|
|
143
|
+
markdown?: FlatESLintConfigItem['rules'];
|
|
144
|
+
yaml?: FlatESLintConfigItem['rules'];
|
|
145
|
+
};
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
/**
|
|
149
|
+
* Construct an array of ESLint flat config items.
|
|
150
|
+
*/
|
|
151
|
+
declare function coderwyd(options?: OptionsConfig & FlatESLintConfigItem, ...userConfigs: (FlatESLintConfigItem | FlatESLintConfigItem[])[]): FlatESLintConfigItem[];
|
|
152
|
+
|
|
153
|
+
declare function comments(): FlatESLintConfigItem[];
|
|
154
|
+
|
|
155
|
+
declare function ignores(): FlatESLintConfigItem[];
|
|
156
|
+
|
|
157
|
+
declare function imports(options?: OptionsStylistic): FlatESLintConfigItem[];
|
|
158
|
+
|
|
159
|
+
declare function javascript(options?: OptionsIsInEditor & OptionsOverrides): FlatESLintConfigItem[];
|
|
160
|
+
|
|
161
|
+
declare function jsdoc(options?: OptionsStylistic): FlatESLintConfigItem[];
|
|
162
|
+
|
|
163
|
+
declare function jsonc(options?: OptionsStylistic & OptionsOverrides): FlatESLintConfigItem[];
|
|
164
|
+
|
|
165
|
+
declare function markdown(options?: OptionsComponentExts & OptionsOverrides): FlatESLintConfigItem[];
|
|
166
|
+
|
|
167
|
+
declare function node(): FlatESLintConfigItem[];
|
|
168
|
+
|
|
169
|
+
/**
|
|
170
|
+
* Sort package.json
|
|
171
|
+
*
|
|
172
|
+
* Requires `jsonc` config
|
|
173
|
+
*/
|
|
174
|
+
declare function sortPackageJson(): FlatESLintConfigItem[];
|
|
175
|
+
/**
|
|
176
|
+
* Sort tsconfig.json
|
|
177
|
+
*
|
|
178
|
+
* Requires `jsonc` config
|
|
179
|
+
*/
|
|
180
|
+
declare function sortTsconfig(): FlatESLintConfigItem[];
|
|
181
|
+
|
|
182
|
+
declare function stylistic(): FlatESLintConfigItem[];
|
|
183
|
+
|
|
184
|
+
declare function typescript(options?: OptionsComponentExts & OptionsOverrides & OptionsTypeScriptWithTypes & OptionsTypeScriptParserOptions): FlatESLintConfigItem[];
|
|
185
|
+
|
|
186
|
+
declare function unicorn(): FlatESLintConfigItem[];
|
|
187
|
+
|
|
188
|
+
declare function getVueVersion(): number;
|
|
189
|
+
declare function vue(options?: OptionsHasTypeScript & OptionsOverrides & OptionsStylistic): FlatESLintConfigItem[];
|
|
190
|
+
|
|
191
|
+
declare function yaml(options?: OptionsOverrides & OptionsStylistic): FlatESLintConfigItem[];
|
|
192
|
+
|
|
193
|
+
declare function test(options?: OptionsIsInEditor & OptionsOverrides): FlatESLintConfigItem[];
|
|
194
|
+
|
|
195
|
+
declare function react(options?: OptionsHasTypeScript & OptionsOverrides): FlatESLintConfigItem[];
|
|
196
|
+
|
|
197
|
+
declare function astro(options?: OptionsHasTypeScript & OptionsOverrides): FlatESLintConfigItem[];
|
|
198
|
+
|
|
199
|
+
/**
|
|
200
|
+
* Combine array and non-array configs into a single array.
|
|
201
|
+
*/
|
|
202
|
+
declare function combine(...configs: (FlatESLintConfigItem | FlatESLintConfigItem[])[]): FlatESLintConfigItem[];
|
|
203
|
+
declare function renameRules(rules: Record<string, any>, from: string, to: string): {
|
|
204
|
+
[k: string]: any;
|
|
205
|
+
};
|
|
206
|
+
|
|
207
|
+
declare const GLOB_SRC_EXT = "?([cm])[jt]s?(x)";
|
|
208
|
+
declare const GLOB_SRC = "**/*.?([cm])[jt]s?(x)";
|
|
209
|
+
declare const GLOB_JS = "**/*.?([cm])js";
|
|
210
|
+
declare const GLOB_JSX = "**/*.?([cm])jsx";
|
|
211
|
+
declare const GLOB_TS = "**/*.?([cm])ts";
|
|
212
|
+
declare const GLOB_TSX = "**/*.?([cm])tsx";
|
|
213
|
+
declare const GLOB_STYLE = "**/*.{c,le,sc}ss";
|
|
214
|
+
declare const GLOB_CSS = "**/*.css";
|
|
215
|
+
declare const GLOB_LESS = "**/*.less";
|
|
216
|
+
declare const GLOB_SCSS = "**/*.scss";
|
|
217
|
+
declare const GLOB_JSON = "**/*.json";
|
|
218
|
+
declare const GLOB_JSON5 = "**/*.json5";
|
|
219
|
+
declare const GLOB_JSONC = "**/*.jsonc";
|
|
220
|
+
declare const GLOB_MARKDOWN = "**/*.md";
|
|
221
|
+
declare const GLOB_VUE = "**/*.vue";
|
|
222
|
+
declare const GLOB_YAML = "**/*.y?(a)ml";
|
|
223
|
+
declare const GLOB_HTML = "**/*.htm?(l)";
|
|
224
|
+
declare const GLOB_ASTRO = "**/*.astro";
|
|
225
|
+
declare const GLOB_MARKDOWN_CODE = "**/*.md/**/*.?([cm])[jt]s?(x)";
|
|
226
|
+
declare const GLOB_TESTS: string[];
|
|
227
|
+
declare const GLOB_ALL_SRC: string[];
|
|
228
|
+
declare const GLOB_EXCLUDE: string[];
|
|
229
|
+
|
|
230
|
+
export { GLOB_ALL_SRC, GLOB_ASTRO, GLOB_CSS, GLOB_EXCLUDE, GLOB_HTML, GLOB_JS, GLOB_JSON, GLOB_JSON5, GLOB_JSONC, GLOB_JSX, GLOB_LESS, GLOB_MARKDOWN, GLOB_MARKDOWN_CODE, GLOB_SCSS, GLOB_SRC, GLOB_SRC_EXT, GLOB_STYLE, GLOB_TESTS, GLOB_TS, GLOB_TSX, GLOB_VUE, GLOB_YAML, OptionsComponentExts, OptionsConfig, OptionsHasTypeScript, OptionsIsInEditor, OptionsOverrides, OptionsStylistic, OptionsTypeScriptParserOptions, OptionsTypeScriptWithTypes, astro, coderwyd, combine, comments, coderwyd as default, getVueVersion, ignores, imports, javascript, jsdoc, jsonc, markdown, node, react, renameRules, sortPackageJson, sortTsconfig, stylistic, test, typescript, unicorn, vue, yaml };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
import { FlatESLintConfigItem } from 'eslint-define-config';
|
|
2
|
+
import { FlatGitignoreOptions } from 'eslint-config-flat-gitignore';
|
|
3
|
+
import { ParserOptions } from '@typescript-eslint/parser';
|
|
4
|
+
export { default as parserTs } from '@typescript-eslint/parser';
|
|
2
5
|
export { default as pluginAntfu } from 'eslint-plugin-antfu';
|
|
3
6
|
export { default as pluginComments } from 'eslint-plugin-eslint-comments';
|
|
4
7
|
export { default as pluginImport } from 'eslint-plugin-i';
|
|
@@ -6,20 +9,20 @@ export { default as pluginJsdoc } from 'eslint-plugin-jsdoc';
|
|
|
6
9
|
export { default as pluginJsonc } from 'eslint-plugin-jsonc';
|
|
7
10
|
export { default as pluginMarkdown } from 'eslint-plugin-markdown';
|
|
8
11
|
export { default as pluginNode } from 'eslint-plugin-n';
|
|
9
|
-
export { default as
|
|
10
|
-
export { default as pluginStylisticTs } from '@stylistic/eslint-plugin-ts';
|
|
12
|
+
export { default as pluginStylistic } from '@stylistic/eslint-plugin';
|
|
11
13
|
export { default as pluginTs } from '@typescript-eslint/eslint-plugin';
|
|
12
14
|
export { default as pluginUnicorn } from 'eslint-plugin-unicorn';
|
|
13
15
|
export { default as pluginUnusedImports } from 'eslint-plugin-unused-imports';
|
|
14
16
|
export { default as pluginVue } from 'eslint-plugin-vue';
|
|
15
|
-
export { default as
|
|
17
|
+
export { default as pluginYaml } from 'eslint-plugin-yml';
|
|
16
18
|
export { default as pluginNoOnlyTests } from 'eslint-plugin-no-only-tests';
|
|
17
19
|
export { default as pluginReact } from 'eslint-plugin-react';
|
|
18
20
|
export { default as pluginReactHooks } from 'eslint-plugin-react-hooks';
|
|
19
|
-
export { default as
|
|
21
|
+
export { default as pluginAstro } from 'eslint-plugin-astro';
|
|
20
22
|
export { default as parserVue } from 'vue-eslint-parser';
|
|
21
|
-
export { default as
|
|
23
|
+
export { default as parserYaml } from 'yaml-eslint-parser';
|
|
22
24
|
export { default as parserJsonc } from 'jsonc-eslint-parser';
|
|
25
|
+
export { default as parserAstro } from 'astro-eslint-parser';
|
|
23
26
|
|
|
24
27
|
interface OptionsComponentExts {
|
|
25
28
|
/**
|
|
@@ -30,17 +33,41 @@ interface OptionsComponentExts {
|
|
|
30
33
|
*/
|
|
31
34
|
componentExts?: string[];
|
|
32
35
|
}
|
|
33
|
-
interface
|
|
34
|
-
|
|
35
|
-
|
|
36
|
+
interface OptionsTypeScriptParserOptions {
|
|
37
|
+
/**
|
|
38
|
+
* Additional parser options for TypeScript.
|
|
39
|
+
*/
|
|
40
|
+
parserOptions?: Partial<ParserOptions>;
|
|
41
|
+
}
|
|
42
|
+
interface OptionsTypeScriptWithTypes {
|
|
43
|
+
/**
|
|
44
|
+
* When this options is provided, type aware rules will be enabled.
|
|
45
|
+
* @see https://typescript-eslint.io/linting/typed-linting/
|
|
46
|
+
*/
|
|
47
|
+
tsconfigPath?: string;
|
|
36
48
|
}
|
|
37
49
|
interface OptionsHasTypeScript {
|
|
38
50
|
typescript?: boolean;
|
|
39
51
|
}
|
|
52
|
+
interface OptionsStylistic {
|
|
53
|
+
stylistic?: boolean;
|
|
54
|
+
}
|
|
55
|
+
interface OptionsOverrides {
|
|
56
|
+
overrides?: FlatESLintConfigItem['rules'];
|
|
57
|
+
}
|
|
40
58
|
interface OptionsIsInEditor {
|
|
41
59
|
isInEditor?: boolean;
|
|
42
60
|
}
|
|
43
|
-
interface OptionsConfig {
|
|
61
|
+
interface OptionsConfig extends OptionsComponentExts {
|
|
62
|
+
/**
|
|
63
|
+
* Enable gitignore support.
|
|
64
|
+
*
|
|
65
|
+
* Passing an object to configure the options.
|
|
66
|
+
*
|
|
67
|
+
* @see https://github.com/antfu/eslint-config-flat-gitignore
|
|
68
|
+
* @default true
|
|
69
|
+
*/
|
|
70
|
+
gitignore?: boolean | FlatGitignoreOptions;
|
|
44
71
|
/**
|
|
45
72
|
* Enable TypeScript support.
|
|
46
73
|
*
|
|
@@ -48,7 +75,7 @@ interface OptionsConfig {
|
|
|
48
75
|
*
|
|
49
76
|
* @default auto-detect based on the dependencies
|
|
50
77
|
*/
|
|
51
|
-
typescript?: boolean |
|
|
78
|
+
typescript?: boolean | OptionsTypeScriptWithTypes;
|
|
52
79
|
/**
|
|
53
80
|
* Enable test support.
|
|
54
81
|
*
|
|
@@ -61,6 +88,18 @@ interface OptionsConfig {
|
|
|
61
88
|
* @default auto-detect based on the dependencies
|
|
62
89
|
*/
|
|
63
90
|
vue?: boolean;
|
|
91
|
+
/**
|
|
92
|
+
* Enable React support.
|
|
93
|
+
*
|
|
94
|
+
* @default auto-detect based on the dependencies
|
|
95
|
+
*/
|
|
96
|
+
react?: boolean;
|
|
97
|
+
/**
|
|
98
|
+
* Enable Astro support.
|
|
99
|
+
*
|
|
100
|
+
* @default auto-detect based on the dependencies
|
|
101
|
+
*/
|
|
102
|
+
astro?: boolean;
|
|
64
103
|
/**
|
|
65
104
|
* Enable JSONC support.
|
|
66
105
|
*
|
|
@@ -90,58 +129,72 @@ interface OptionsConfig {
|
|
|
90
129
|
* @default auto-detect based on the process.env
|
|
91
130
|
*/
|
|
92
131
|
isInEditor?: boolean;
|
|
132
|
+
/**
|
|
133
|
+
* Provide overrides for rules for each integration.
|
|
134
|
+
*/
|
|
135
|
+
overrides?: {
|
|
136
|
+
javascript?: FlatESLintConfigItem['rules'];
|
|
137
|
+
typescript?: FlatESLintConfigItem['rules'];
|
|
138
|
+
test?: FlatESLintConfigItem['rules'];
|
|
139
|
+
vue?: FlatESLintConfigItem['rules'];
|
|
140
|
+
react?: FlatESLintConfigItem['rules'];
|
|
141
|
+
astro?: FlatESLintConfigItem['rules'];
|
|
142
|
+
jsonc?: FlatESLintConfigItem['rules'];
|
|
143
|
+
markdown?: FlatESLintConfigItem['rules'];
|
|
144
|
+
yaml?: FlatESLintConfigItem['rules'];
|
|
145
|
+
};
|
|
93
146
|
}
|
|
94
147
|
|
|
95
148
|
/**
|
|
96
149
|
* Construct an array of ESLint flat config items.
|
|
97
150
|
*/
|
|
98
|
-
declare function coderwyd(options?: OptionsConfig, ...userConfigs: (FlatESLintConfigItem | FlatESLintConfigItem[])[]): FlatESLintConfigItem[];
|
|
151
|
+
declare function coderwyd(options?: OptionsConfig & FlatESLintConfigItem, ...userConfigs: (FlatESLintConfigItem | FlatESLintConfigItem[])[]): FlatESLintConfigItem[];
|
|
99
152
|
|
|
100
|
-
declare
|
|
153
|
+
declare function comments(): FlatESLintConfigItem[];
|
|
101
154
|
|
|
102
|
-
declare
|
|
155
|
+
declare function ignores(): FlatESLintConfigItem[];
|
|
103
156
|
|
|
104
|
-
declare
|
|
157
|
+
declare function imports(options?: OptionsStylistic): FlatESLintConfigItem[];
|
|
105
158
|
|
|
106
|
-
declare function javascript(options?: OptionsIsInEditor): FlatESLintConfigItem[];
|
|
159
|
+
declare function javascript(options?: OptionsIsInEditor & OptionsOverrides): FlatESLintConfigItem[];
|
|
107
160
|
|
|
108
|
-
declare
|
|
161
|
+
declare function jsdoc(options?: OptionsStylistic): FlatESLintConfigItem[];
|
|
109
162
|
|
|
110
|
-
declare
|
|
163
|
+
declare function jsonc(options?: OptionsStylistic & OptionsOverrides): FlatESLintConfigItem[];
|
|
111
164
|
|
|
112
|
-
declare function markdown(options?: OptionsComponentExts): FlatESLintConfigItem[];
|
|
165
|
+
declare function markdown(options?: OptionsComponentExts & OptionsOverrides): FlatESLintConfigItem[];
|
|
113
166
|
|
|
114
|
-
declare
|
|
167
|
+
declare function node(): FlatESLintConfigItem[];
|
|
115
168
|
|
|
116
169
|
/**
|
|
117
170
|
* Sort package.json
|
|
118
171
|
*
|
|
119
172
|
* Requires `jsonc` config
|
|
120
173
|
*/
|
|
121
|
-
declare
|
|
174
|
+
declare function sortPackageJson(): FlatESLintConfigItem[];
|
|
122
175
|
/**
|
|
123
176
|
* Sort tsconfig.json
|
|
124
177
|
*
|
|
125
178
|
* Requires `jsonc` config
|
|
126
179
|
*/
|
|
127
|
-
declare
|
|
180
|
+
declare function sortTsconfig(): FlatESLintConfigItem[];
|
|
128
181
|
|
|
129
|
-
declare
|
|
130
|
-
declare const typescriptStylistic: FlatESLintConfigItem[];
|
|
182
|
+
declare function stylistic(): FlatESLintConfigItem[];
|
|
131
183
|
|
|
132
|
-
declare function typescript(options?: OptionsComponentExts): FlatESLintConfigItem[];
|
|
133
|
-
declare function typescriptWithLanguageServer(options: OptionsTypeScriptWithLanguageServer & OptionsComponentExts): FlatESLintConfigItem[];
|
|
184
|
+
declare function typescript(options?: OptionsComponentExts & OptionsOverrides & OptionsTypeScriptWithTypes & OptionsTypeScriptParserOptions): FlatESLintConfigItem[];
|
|
134
185
|
|
|
135
|
-
declare
|
|
186
|
+
declare function unicorn(): FlatESLintConfigItem[];
|
|
136
187
|
|
|
137
188
|
declare function getVueVersion(): number;
|
|
138
|
-
declare function vue(options?: OptionsHasTypeScript): FlatESLintConfigItem[];
|
|
189
|
+
declare function vue(options?: OptionsHasTypeScript & OptionsOverrides & OptionsStylistic): FlatESLintConfigItem[];
|
|
190
|
+
|
|
191
|
+
declare function yaml(options?: OptionsOverrides & OptionsStylistic): FlatESLintConfigItem[];
|
|
139
192
|
|
|
140
|
-
declare
|
|
193
|
+
declare function test(options?: OptionsIsInEditor & OptionsOverrides): FlatESLintConfigItem[];
|
|
141
194
|
|
|
142
|
-
declare function
|
|
195
|
+
declare function react(options?: OptionsHasTypeScript & OptionsOverrides): FlatESLintConfigItem[];
|
|
143
196
|
|
|
144
|
-
declare function
|
|
197
|
+
declare function astro(options?: OptionsHasTypeScript & OptionsOverrides): FlatESLintConfigItem[];
|
|
145
198
|
|
|
146
199
|
/**
|
|
147
200
|
* Combine array and non-array configs into a single array.
|
|
@@ -151,4 +204,27 @@ declare function renameRules(rules: Record<string, any>, from: string, to: strin
|
|
|
151
204
|
[k: string]: any;
|
|
152
205
|
};
|
|
153
206
|
|
|
154
|
-
|
|
207
|
+
declare const GLOB_SRC_EXT = "?([cm])[jt]s?(x)";
|
|
208
|
+
declare const GLOB_SRC = "**/*.?([cm])[jt]s?(x)";
|
|
209
|
+
declare const GLOB_JS = "**/*.?([cm])js";
|
|
210
|
+
declare const GLOB_JSX = "**/*.?([cm])jsx";
|
|
211
|
+
declare const GLOB_TS = "**/*.?([cm])ts";
|
|
212
|
+
declare const GLOB_TSX = "**/*.?([cm])tsx";
|
|
213
|
+
declare const GLOB_STYLE = "**/*.{c,le,sc}ss";
|
|
214
|
+
declare const GLOB_CSS = "**/*.css";
|
|
215
|
+
declare const GLOB_LESS = "**/*.less";
|
|
216
|
+
declare const GLOB_SCSS = "**/*.scss";
|
|
217
|
+
declare const GLOB_JSON = "**/*.json";
|
|
218
|
+
declare const GLOB_JSON5 = "**/*.json5";
|
|
219
|
+
declare const GLOB_JSONC = "**/*.jsonc";
|
|
220
|
+
declare const GLOB_MARKDOWN = "**/*.md";
|
|
221
|
+
declare const GLOB_VUE = "**/*.vue";
|
|
222
|
+
declare const GLOB_YAML = "**/*.y?(a)ml";
|
|
223
|
+
declare const GLOB_HTML = "**/*.htm?(l)";
|
|
224
|
+
declare const GLOB_ASTRO = "**/*.astro";
|
|
225
|
+
declare const GLOB_MARKDOWN_CODE = "**/*.md/**/*.?([cm])[jt]s?(x)";
|
|
226
|
+
declare const GLOB_TESTS: string[];
|
|
227
|
+
declare const GLOB_ALL_SRC: string[];
|
|
228
|
+
declare const GLOB_EXCLUDE: string[];
|
|
229
|
+
|
|
230
|
+
export { GLOB_ALL_SRC, GLOB_ASTRO, GLOB_CSS, GLOB_EXCLUDE, GLOB_HTML, GLOB_JS, GLOB_JSON, GLOB_JSON5, GLOB_JSONC, GLOB_JSX, GLOB_LESS, GLOB_MARKDOWN, GLOB_MARKDOWN_CODE, GLOB_SCSS, GLOB_SRC, GLOB_SRC_EXT, GLOB_STYLE, GLOB_TESTS, GLOB_TS, GLOB_TSX, GLOB_VUE, GLOB_YAML, OptionsComponentExts, OptionsConfig, OptionsHasTypeScript, OptionsIsInEditor, OptionsOverrides, OptionsStylistic, OptionsTypeScriptParserOptions, OptionsTypeScriptWithTypes, astro, coderwyd, combine, comments, coderwyd as default, getVueVersion, ignores, imports, javascript, jsdoc, jsonc, markdown, node, react, renameRules, sortPackageJson, sortTsconfig, stylistic, test, typescript, unicorn, vue, yaml };
|