@ntnyq/eslint-config 7.0.0-beta.19 → 7.0.0-beta.20
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.mts +230 -175
- package/dist/index.mjs +5 -0
- package/package.json +23 -23
package/dist/index.d.mts
CHANGED
|
@@ -42,29 +42,29 @@ import { BuiltInParserName, Options as Options$1 } from "prettier";
|
|
|
42
42
|
/**
|
|
43
43
|
* Array or not
|
|
44
44
|
*/
|
|
45
|
-
type Arrayable<T> = T | T[];
|
|
45
|
+
export type Arrayable<T> = T | T[];
|
|
46
46
|
/**
|
|
47
47
|
* Promise or not
|
|
48
48
|
*/
|
|
49
|
-
type Awaitable<T> = Promise<T> | T;
|
|
49
|
+
export type Awaitable<T> = Promise<T> | T;
|
|
50
50
|
/**
|
|
51
51
|
* Non-empty array
|
|
52
52
|
*/
|
|
53
|
-
type NonEmptyArray<T> = [T, ...T[]];
|
|
53
|
+
export type NonEmptyArray<T> = [T, ...T[]];
|
|
54
54
|
/**
|
|
55
55
|
* Make types human readable
|
|
56
56
|
*/
|
|
57
|
-
type InteropModuleDefault<T> = T extends {
|
|
57
|
+
export type InteropModuleDefault<T> = T extends {
|
|
58
58
|
default: infer U;
|
|
59
59
|
} ? U : T;
|
|
60
|
-
type Pretty<T> = { [P in keyof T]: T[P]; } & {};
|
|
61
|
-
type ResolvedOptions<T> = T extends boolean ? never : NonNullable<T>;
|
|
60
|
+
export type Pretty<T> = { [P in keyof T]: T[P]; } & {};
|
|
61
|
+
export type ResolvedOptions<T> = T extends boolean ? never : NonNullable<T>;
|
|
62
62
|
//#endregion
|
|
63
63
|
//#region src/configs/vue.d.ts
|
|
64
64
|
/**
|
|
65
65
|
* Options type of {@link configVue}
|
|
66
66
|
*/
|
|
67
|
-
type ConfigVueOptions = OptionsFiles & OptionsOverrides & OptionsShareable & OptionsFormatter & {
|
|
67
|
+
export type ConfigVueOptions = OptionsFiles & OptionsOverrides & OptionsShareable & OptionsFormatter & {
|
|
68
68
|
/**
|
|
69
69
|
* Create virtual files for Vue SFC blocks to enable linting.
|
|
70
70
|
*
|
|
@@ -82,13 +82,13 @@ type ConfigVueOptions = OptionsFiles & OptionsOverrides & OptionsShareable & Opt
|
|
|
82
82
|
* @param options - {@link ConfigVueOptions}
|
|
83
83
|
* @returns ESLint configs
|
|
84
84
|
*/
|
|
85
|
-
declare const configVue: (options?: ConfigVueOptions) => TypedConfigItem[];
|
|
85
|
+
export declare const configVue: (options?: ConfigVueOptions) => TypedConfigItem[];
|
|
86
86
|
//#endregion
|
|
87
87
|
//#region src/configs/yml.d.ts
|
|
88
88
|
/**
|
|
89
89
|
* Options type of {@link configYml}
|
|
90
90
|
*/
|
|
91
|
-
type ConfigYmlOptions = OptionsOverrides & OptionsFiles & OptionsFormatter;
|
|
91
|
+
export type ConfigYmlOptions = OptionsOverrides & OptionsFiles & OptionsFormatter;
|
|
92
92
|
/**
|
|
93
93
|
* Config for yml, yaml files
|
|
94
94
|
*
|
|
@@ -97,13 +97,13 @@ type ConfigYmlOptions = OptionsOverrides & OptionsFiles & OptionsFormatter;
|
|
|
97
97
|
* @param options - {@link ConfigYmlOptions}
|
|
98
98
|
* @returns ESLint configs
|
|
99
99
|
*/
|
|
100
|
-
declare const configYml: (options?: ConfigYmlOptions) => TypedConfigItem[];
|
|
100
|
+
export declare const configYml: (options?: ConfigYmlOptions) => TypedConfigItem[];
|
|
101
101
|
//#endregion
|
|
102
102
|
//#region src/configs/html.d.ts
|
|
103
103
|
/**
|
|
104
104
|
* Options type of {@link configHtml}
|
|
105
105
|
*/
|
|
106
|
-
type ConfigHtmlOptions = OptionsFiles & OptionsOverrides;
|
|
106
|
+
export type ConfigHtmlOptions = OptionsFiles & OptionsOverrides;
|
|
107
107
|
/**
|
|
108
108
|
* Config for html files
|
|
109
109
|
*
|
|
@@ -112,13 +112,13 @@ type ConfigHtmlOptions = OptionsFiles & OptionsOverrides;
|
|
|
112
112
|
* @param options - {@link ConfigHtmlOptions}
|
|
113
113
|
* @returns ESLint configs
|
|
114
114
|
*/
|
|
115
|
-
declare const configHtml: (options?: ConfigHtmlOptions) => Promise<TypedConfigItem[]>;
|
|
115
|
+
export declare const configHtml: (options?: ConfigHtmlOptions) => Promise<TypedConfigItem[]>;
|
|
116
116
|
//#endregion
|
|
117
117
|
//#region src/configs/node.d.ts
|
|
118
118
|
/**
|
|
119
119
|
* Options type of {@link configNode}
|
|
120
120
|
*/
|
|
121
|
-
type ConfigNodeOptions = OptionsOverrides;
|
|
121
|
+
export type ConfigNodeOptions = OptionsOverrides;
|
|
122
122
|
/**
|
|
123
123
|
* Config for common files
|
|
124
124
|
*
|
|
@@ -127,17 +127,17 @@ type ConfigNodeOptions = OptionsOverrides;
|
|
|
127
127
|
* @param options - {@link ConfigNodeOptions}
|
|
128
128
|
* @returns ESLint configs
|
|
129
129
|
*/
|
|
130
|
-
declare const configNode: (options?: ConfigNodeOptions) => TypedConfigItem[];
|
|
130
|
+
export declare const configNode: (options?: ConfigNodeOptions) => TypedConfigItem[];
|
|
131
131
|
//#endregion
|
|
132
132
|
//#region src/configs/pnpm.d.ts
|
|
133
133
|
/**
|
|
134
134
|
* Options for a pnpm config branch
|
|
135
135
|
*/
|
|
136
|
-
type ConfigPnpmBranchOptions = OptionsFiles & OptionsOverrides;
|
|
136
|
+
export type ConfigPnpmBranchOptions = OptionsFiles & OptionsOverrides;
|
|
137
137
|
/**
|
|
138
138
|
* Options type of {@link configPnpm}
|
|
139
139
|
*/
|
|
140
|
-
interface ConfigPnpmOptions {
|
|
140
|
+
export interface ConfigPnpmOptions {
|
|
141
141
|
/**
|
|
142
142
|
* Configure package.json rules
|
|
143
143
|
* @default true
|
|
@@ -157,13 +157,13 @@ interface ConfigPnpmOptions {
|
|
|
157
157
|
* @param options - {@link ConfigPnpmOptions}
|
|
158
158
|
* @returns ESLint configs
|
|
159
159
|
*/
|
|
160
|
-
declare const configPnpm: (options?: ConfigPnpmOptions) => Promise<TypedConfigItem[]>;
|
|
160
|
+
export declare const configPnpm: (options?: ConfigPnpmOptions) => Promise<TypedConfigItem[]>;
|
|
161
161
|
//#endregion
|
|
162
162
|
//#region src/configs/sort.d.ts
|
|
163
163
|
/**
|
|
164
164
|
* Options type of {@link configSort}
|
|
165
165
|
*/
|
|
166
|
-
interface ConfigSortOptions {
|
|
166
|
+
export interface ConfigSortOptions {
|
|
167
167
|
/**
|
|
168
168
|
* JSON files to sort all properties alphabeta
|
|
169
169
|
*/
|
|
@@ -199,13 +199,13 @@ interface ConfigSortOptions {
|
|
|
199
199
|
* @param options - {@link ConfigSortOptions}
|
|
200
200
|
* @returns ESLint configs
|
|
201
201
|
*/
|
|
202
|
-
declare const configSort: (options?: ConfigSortOptions) => TypedConfigItem[];
|
|
202
|
+
export declare const configSort: (options?: ConfigSortOptions) => TypedConfigItem[];
|
|
203
203
|
//#endregion
|
|
204
204
|
//#region src/configs/svgo.d.ts
|
|
205
205
|
/**
|
|
206
206
|
* Options type of {@link configSVGO}
|
|
207
207
|
*/
|
|
208
|
-
type ConfigSVGOOptions = OptionsFiles & OptionsIgnores & OptionsOverrides;
|
|
208
|
+
export type ConfigSVGOOptions = OptionsFiles & OptionsIgnores & OptionsOverrides;
|
|
209
209
|
/**
|
|
210
210
|
* Config for svg files
|
|
211
211
|
*
|
|
@@ -214,17 +214,17 @@ type ConfigSVGOOptions = OptionsFiles & OptionsIgnores & OptionsOverrides;
|
|
|
214
214
|
* @param options - {@link ConfigSVGOOptions}
|
|
215
215
|
* @returns ESLint configs
|
|
216
216
|
*/
|
|
217
|
-
declare const configSVGO: (options?: ConfigSVGOOptions) => TypedConfigItem[];
|
|
217
|
+
export declare const configSVGO: (options?: ConfigSVGOOptions) => TypedConfigItem[];
|
|
218
218
|
//#endregion
|
|
219
219
|
//#region src/configs/test.d.ts
|
|
220
220
|
/**
|
|
221
221
|
* Options for a test config branch
|
|
222
222
|
*/
|
|
223
|
-
type ConfigTestBranchOptions = OptionsFiles & OptionsOverrides;
|
|
223
|
+
export type ConfigTestBranchOptions = OptionsFiles & OptionsOverrides;
|
|
224
224
|
/**
|
|
225
225
|
* Options type of {@link configTest}
|
|
226
226
|
*/
|
|
227
|
-
interface ConfigTestOptions extends OptionsFiles {
|
|
227
|
+
export interface ConfigTestOptions extends OptionsFiles {
|
|
228
228
|
/**
|
|
229
229
|
* Configure base test rules
|
|
230
230
|
* @default true
|
|
@@ -244,13 +244,13 @@ interface ConfigTestOptions extends OptionsFiles {
|
|
|
244
244
|
* @param options - {@link ConfigTestOptions}
|
|
245
245
|
* @returns ESLint configs
|
|
246
246
|
*/
|
|
247
|
-
declare const configTest: (options?: ConfigTestOptions) => TypedConfigItem[];
|
|
247
|
+
export declare const configTest: (options?: ConfigTestOptions) => TypedConfigItem[];
|
|
248
248
|
//#endregion
|
|
249
249
|
//#region src/configs/toml.d.ts
|
|
250
250
|
/**
|
|
251
251
|
* Options type of {@link configToml}
|
|
252
252
|
*/
|
|
253
|
-
type ConfigTomlOptions = OptionsOverrides & OptionsFiles;
|
|
253
|
+
export type ConfigTomlOptions = OptionsOverrides & OptionsFiles;
|
|
254
254
|
/**
|
|
255
255
|
* Config for toml files
|
|
256
256
|
*
|
|
@@ -259,13 +259,13 @@ type ConfigTomlOptions = OptionsOverrides & OptionsFiles;
|
|
|
259
259
|
* @param options - {@link ConfigTomlOptions}
|
|
260
260
|
* @returns ESLint configs
|
|
261
261
|
*/
|
|
262
|
-
declare const configToml: (options?: ConfigTomlOptions) => TypedConfigItem[];
|
|
262
|
+
export declare const configToml: (options?: ConfigTomlOptions) => TypedConfigItem[];
|
|
263
263
|
//#endregion
|
|
264
264
|
//#region src/configs/antfu.d.ts
|
|
265
265
|
/**
|
|
266
266
|
* Options type of {@link configAntfu}
|
|
267
267
|
*/
|
|
268
|
-
type ConfigAntfuOptions = OptionsOverrides;
|
|
268
|
+
export type ConfigAntfuOptions = OptionsOverrides;
|
|
269
269
|
/**
|
|
270
270
|
* Config for common files
|
|
271
271
|
*
|
|
@@ -274,13 +274,13 @@ type ConfigAntfuOptions = OptionsOverrides;
|
|
|
274
274
|
* @param options - {@link ConfigAntfuOptions}
|
|
275
275
|
* @returns ESLint configs
|
|
276
276
|
*/
|
|
277
|
-
declare const configAntfu: (options?: ConfigAntfuOptions) => TypedConfigItem[];
|
|
277
|
+
export declare const configAntfu: (options?: ConfigAntfuOptions) => TypedConfigItem[];
|
|
278
278
|
//#endregion
|
|
279
279
|
//#region src/configs/astro.d.ts
|
|
280
280
|
/**
|
|
281
281
|
* Options type of {@link configAstro}
|
|
282
282
|
*/
|
|
283
|
-
type ConfigAstroOptions = OptionsFiles & OptionsOverrides & OptionsShareable;
|
|
283
|
+
export type ConfigAstroOptions = OptionsFiles & OptionsOverrides & OptionsShareable;
|
|
284
284
|
/**
|
|
285
285
|
* Config for astro files
|
|
286
286
|
*
|
|
@@ -289,13 +289,13 @@ type ConfigAstroOptions = OptionsFiles & OptionsOverrides & OptionsShareable;
|
|
|
289
289
|
* @param options - {@link ConfigAstroOptions}
|
|
290
290
|
* @returns ESLint configs
|
|
291
291
|
*/
|
|
292
|
-
declare const configAstro: (options?: ConfigAstroOptions) => Promise<TypedConfigItem[]>;
|
|
292
|
+
export declare const configAstro: (options?: ConfigAstroOptions) => Promise<TypedConfigItem[]>;
|
|
293
293
|
//#endregion
|
|
294
294
|
//#region src/configs/jsdoc.d.ts
|
|
295
295
|
/**
|
|
296
296
|
* Options type of {@link configJsdoc}
|
|
297
297
|
*/
|
|
298
|
-
type ConfigJsdocOptions = OptionsOverrides;
|
|
298
|
+
export type ConfigJsdocOptions = OptionsOverrides;
|
|
299
299
|
/**
|
|
300
300
|
* Config for jsdoc
|
|
301
301
|
*
|
|
@@ -304,13 +304,13 @@ type ConfigJsdocOptions = OptionsOverrides;
|
|
|
304
304
|
* @param options - {@link ConfigJsdocOptions}
|
|
305
305
|
* @returns ESLint configs
|
|
306
306
|
*/
|
|
307
|
-
declare const configJsdoc: (options?: ConfigJsdocOptions) => TypedConfigItem[];
|
|
307
|
+
export declare const configJsdoc: (options?: ConfigJsdocOptions) => TypedConfigItem[];
|
|
308
308
|
//#endregion
|
|
309
309
|
//#region src/configs/jsonc.d.ts
|
|
310
310
|
/**
|
|
311
311
|
* Options type of {@link configJsonc}
|
|
312
312
|
*/
|
|
313
|
-
type ConfigJsoncOptions = OptionsOverrides & OptionsFiles & OptionsFormatter;
|
|
313
|
+
export type ConfigJsoncOptions = OptionsOverrides & OptionsFiles & OptionsFormatter;
|
|
314
314
|
/**
|
|
315
315
|
* Config for json, jsonc and json5 files
|
|
316
316
|
*
|
|
@@ -319,13 +319,13 @@ type ConfigJsoncOptions = OptionsOverrides & OptionsFiles & OptionsFormatter;
|
|
|
319
319
|
* @param options - {@link ConfigJsoncOptions}
|
|
320
320
|
* @returns ESLint configs
|
|
321
321
|
*/
|
|
322
|
-
declare const configJsonc: (options?: ConfigJsoncOptions) => TypedConfigItem[];
|
|
322
|
+
export declare const configJsonc: (options?: ConfigJsoncOptions) => TypedConfigItem[];
|
|
323
323
|
//#endregion
|
|
324
324
|
//#region src/configs/ntnyq.d.ts
|
|
325
325
|
/**
|
|
326
326
|
* Options type of {@link configNtnyq}
|
|
327
327
|
*/
|
|
328
|
-
type ConfigNtnyqOptions = OptionsOverrides;
|
|
328
|
+
export type ConfigNtnyqOptions = OptionsOverrides;
|
|
329
329
|
/**
|
|
330
330
|
* Config for common files
|
|
331
331
|
*
|
|
@@ -334,13 +334,13 @@ type ConfigNtnyqOptions = OptionsOverrides;
|
|
|
334
334
|
* @param options - {@link ConfigNtnyqOptions}
|
|
335
335
|
* @returns ESLint configs
|
|
336
336
|
*/
|
|
337
|
-
declare const configNtnyq: (options?: ConfigNtnyqOptions) => TypedConfigItem[];
|
|
337
|
+
export declare const configNtnyq: (options?: ConfigNtnyqOptions) => TypedConfigItem[];
|
|
338
338
|
//#endregion
|
|
339
339
|
//#region src/configs/oxfmt.d.ts
|
|
340
340
|
/**
|
|
341
341
|
* Options type of {@link configOxfmt}
|
|
342
342
|
*/
|
|
343
|
-
interface ConfigOxfmtOptions extends OptionsOverrides, OptionsFiles, OptionsIgnores {
|
|
343
|
+
export interface ConfigOxfmtOptions extends OptionsOverrides, OptionsFiles, OptionsIgnores {
|
|
344
344
|
filesExtensions?: string[];
|
|
345
345
|
}
|
|
346
346
|
/**
|
|
@@ -350,13 +350,13 @@ interface ConfigOxfmtOptions extends OptionsOverrides, OptionsFiles, OptionsIgno
|
|
|
350
350
|
*
|
|
351
351
|
* @returns ESLint configs
|
|
352
352
|
*/
|
|
353
|
-
declare const configOxfmt: (options?: ConfigOxfmtOptions) => TypedConfigItem[];
|
|
353
|
+
export declare const configOxfmt: (options?: ConfigOxfmtOptions) => TypedConfigItem[];
|
|
354
354
|
//#endregion
|
|
355
355
|
//#region src/configs/pinia.d.ts
|
|
356
356
|
/**
|
|
357
357
|
* Options type of {@link configPinia}
|
|
358
358
|
*/
|
|
359
|
-
type ConfigPiniaOptions = OptionsFiles & OptionsOverrides;
|
|
359
|
+
export type ConfigPiniaOptions = OptionsFiles & OptionsOverrides;
|
|
360
360
|
/**
|
|
361
361
|
* Config for pinia store
|
|
362
362
|
*
|
|
@@ -365,13 +365,13 @@ type ConfigPiniaOptions = OptionsFiles & OptionsOverrides;
|
|
|
365
365
|
* @param options - {@link ConfigPiniaOptions}
|
|
366
366
|
* @returns ESLint configs
|
|
367
367
|
*/
|
|
368
|
-
declare const configPinia: (options?: ConfigPiniaOptions) => TypedConfigItem[];
|
|
368
|
+
export declare const configPinia: (options?: ConfigPiniaOptions) => TypedConfigItem[];
|
|
369
369
|
//#endregion
|
|
370
370
|
//#region src/configs/depend.d.ts
|
|
371
371
|
/**
|
|
372
372
|
* Options type of {@link configDepend}
|
|
373
373
|
*/
|
|
374
|
-
type ConfigDependOptions = OptionsFiles & OptionsOverrides & {
|
|
374
|
+
export type ConfigDependOptions = OptionsFiles & OptionsOverrides & {
|
|
375
375
|
/**
|
|
376
376
|
* Check deps in package.json
|
|
377
377
|
*
|
|
@@ -407,13 +407,13 @@ type ConfigDependOptions = OptionsFiles & OptionsOverrides & {
|
|
|
407
407
|
* @param options - {@link ConfigDependOptions}
|
|
408
408
|
* @returns ESLint configs
|
|
409
409
|
*/
|
|
410
|
-
declare const configDepend: (options?: ConfigDependOptions) => TypedConfigItem[];
|
|
410
|
+
export declare const configDepend: (options?: ConfigDependOptions) => TypedConfigItem[];
|
|
411
411
|
//#endregion
|
|
412
412
|
//#region src/configs/regexp.d.ts
|
|
413
413
|
/**
|
|
414
414
|
* Options type of {@link configRegexp}
|
|
415
415
|
*/
|
|
416
|
-
type ConfigRegexpOptions = OptionsOverrides & {
|
|
416
|
+
export type ConfigRegexpOptions = OptionsOverrides & {
|
|
417
417
|
/**
|
|
418
418
|
* rule severity
|
|
419
419
|
*
|
|
@@ -429,13 +429,13 @@ type ConfigRegexpOptions = OptionsOverrides & {
|
|
|
429
429
|
* @param options - {@link ConfigRegexpOptions}
|
|
430
430
|
* @returns ESLint configs
|
|
431
431
|
*/
|
|
432
|
-
declare const configRegexp: (options?: ConfigRegexpOptions) => TypedConfigItem[];
|
|
432
|
+
export declare const configRegexp: (options?: ConfigRegexpOptions) => TypedConfigItem[];
|
|
433
433
|
//#endregion
|
|
434
434
|
//#region src/configs/svelte.d.ts
|
|
435
435
|
/**
|
|
436
436
|
* Options type of {@link configSvelte}
|
|
437
437
|
*/
|
|
438
|
-
type ConfigSvelteOptions = OptionsFiles & OptionsOverrides & OptionsShareable;
|
|
438
|
+
export type ConfigSvelteOptions = OptionsFiles & OptionsOverrides & OptionsShareable;
|
|
439
439
|
/**
|
|
440
440
|
* Config for svelte files
|
|
441
441
|
*
|
|
@@ -444,13 +444,13 @@ type ConfigSvelteOptions = OptionsFiles & OptionsOverrides & OptionsShareable;
|
|
|
444
444
|
* @param options - {@link ConfigSvelteOptions}
|
|
445
445
|
* @returns ESLint configs
|
|
446
446
|
*/
|
|
447
|
-
declare const configSvelte: (options?: ConfigSvelteOptions) => Promise<TypedConfigItem[]>;
|
|
447
|
+
export declare const configSvelte: (options?: ConfigSvelteOptions) => Promise<TypedConfigItem[]>;
|
|
448
448
|
//#endregion
|
|
449
449
|
//#region src/configs/unocss.d.ts
|
|
450
450
|
/**
|
|
451
451
|
* Options type of {@link configUnoCSS}
|
|
452
452
|
*/
|
|
453
|
-
type ConfigUnoCSSOptions = OptionsOverrides & {
|
|
453
|
+
export type ConfigUnoCSSOptions = OptionsOverrides & {
|
|
454
454
|
/**
|
|
455
455
|
* Enable attributify sort order
|
|
456
456
|
*
|
|
@@ -466,13 +466,13 @@ type ConfigUnoCSSOptions = OptionsOverrides & {
|
|
|
466
466
|
* @param options - {@link ConfigUnoCSSOptions}
|
|
467
467
|
* @returns ESLint configs
|
|
468
468
|
*/
|
|
469
|
-
declare const configUnoCSS: (options?: ConfigUnoCSSOptions) => TypedConfigItem[];
|
|
469
|
+
export declare const configUnoCSS: (options?: ConfigUnoCSSOptions) => TypedConfigItem[];
|
|
470
470
|
//#endregion
|
|
471
471
|
//#region src/configs/command.d.ts
|
|
472
472
|
/**
|
|
473
473
|
* Options type of {@link configCommand}
|
|
474
474
|
*/
|
|
475
|
-
type ConfigCommandOptions = ESLintPluginCommandOptions;
|
|
475
|
+
export type ConfigCommandOptions = ESLintPluginCommandOptions;
|
|
476
476
|
/**
|
|
477
477
|
* Config for using comments as codemod
|
|
478
478
|
*
|
|
@@ -481,7 +481,7 @@ type ConfigCommandOptions = ESLintPluginCommandOptions;
|
|
|
481
481
|
* @param options - {@link ConfigCommandOptions}
|
|
482
482
|
* @returns ESLint configs
|
|
483
483
|
*/
|
|
484
|
-
declare const configCommand: (options?: ConfigCommandOptions) => TypedConfigItem[];
|
|
484
|
+
export declare const configCommand: (options?: ConfigCommandOptions) => TypedConfigItem[];
|
|
485
485
|
//#endregion
|
|
486
486
|
//#region src/configs/ignores.d.ts
|
|
487
487
|
/**
|
|
@@ -490,7 +490,7 @@ declare const configCommand: (options?: ConfigCommandOptions) => TypedConfigItem
|
|
|
490
490
|
* Passing an array to extend the built-in ignores
|
|
491
491
|
* Passing a function to modify the built-in ignores
|
|
492
492
|
*/
|
|
493
|
-
type ConfigIgnoresOptions = string[] | ((ignores: string[]) => string[]);
|
|
493
|
+
export type ConfigIgnoresOptions = string[] | ((ignores: string[]) => string[]);
|
|
494
494
|
/**
|
|
495
495
|
* Config for ignore files from linting
|
|
496
496
|
*
|
|
@@ -499,13 +499,13 @@ type ConfigIgnoresOptions = string[] | ((ignores: string[]) => string[]);
|
|
|
499
499
|
* @param customIgnores - {@link ConfigIgnoresOptions}
|
|
500
500
|
* @returns ESLint configs
|
|
501
501
|
*/
|
|
502
|
-
declare const configIgnores: (customIgnores?: ConfigIgnoresOptions) => TypedConfigItem[];
|
|
502
|
+
export declare const configIgnores: (customIgnores?: ConfigIgnoresOptions) => TypedConfigItem[];
|
|
503
503
|
//#endregion
|
|
504
504
|
//#region src/configs/importX.d.ts
|
|
505
505
|
/**
|
|
506
506
|
* Options type of {@link configImportX}
|
|
507
507
|
*/
|
|
508
|
-
type ConfigImportXOptions = Pick<OptionsShareable, 'typescript'> & OptionsOverrides & {
|
|
508
|
+
export type ConfigImportXOptions = Pick<OptionsShareable, 'typescript'> & OptionsOverrides & {
|
|
509
509
|
/**
|
|
510
510
|
* Use [eslint-import-resolver-typescript](https://github.com/import-js/eslint-import-resolver-typescript) if `typescript` is installed
|
|
511
511
|
*
|
|
@@ -521,13 +521,13 @@ type ConfigImportXOptions = Pick<OptionsShareable, 'typescript'> & OptionsOverri
|
|
|
521
521
|
* @param options - {@link ConfigImportXOptions}
|
|
522
522
|
* @returns ESLint configs
|
|
523
523
|
*/
|
|
524
|
-
declare const configImportX: (options?: ConfigImportXOptions) => TypedConfigItem[];
|
|
524
|
+
export declare const configImportX: (options?: ConfigImportXOptions) => TypedConfigItem[];
|
|
525
525
|
//#endregion
|
|
526
526
|
//#region src/configs/unicorn.d.ts
|
|
527
527
|
/**
|
|
528
528
|
* Built-in presets of `eslint-plugin-unicorn`
|
|
529
529
|
*/
|
|
530
|
-
declare const PLUGIN_UNICORN_PRESET: readonly [
|
|
530
|
+
declare const PLUGIN_UNICORN_PRESET: readonly ["all", "recommended", "unopinionated"];
|
|
531
531
|
/**
|
|
532
532
|
* Type of built-in presets of `eslint-plugin-unicorn`
|
|
533
533
|
*/
|
|
@@ -535,7 +535,7 @@ type UnicornPreset = (typeof PLUGIN_UNICORN_PRESET)[number];
|
|
|
535
535
|
/**
|
|
536
536
|
* Options type of {@link configUnicorn}
|
|
537
537
|
*/
|
|
538
|
-
type ConfigUnicornOptions = OptionsOverrides & {
|
|
538
|
+
export type ConfigUnicornOptions = OptionsOverrides & {
|
|
539
539
|
/**
|
|
540
540
|
* Use a built-in preset
|
|
541
541
|
*/
|
|
@@ -549,13 +549,13 @@ type ConfigUnicornOptions = OptionsOverrides & {
|
|
|
549
549
|
* @param options - {@link ConfigUnicornOptions}
|
|
550
550
|
* @returns ESLint configs
|
|
551
551
|
*/
|
|
552
|
-
declare const configUnicorn: (options?: ConfigUnicornOptions) => TypedConfigItem[];
|
|
552
|
+
export declare const configUnicorn: (options?: ConfigUnicornOptions) => TypedConfigItem[];
|
|
553
553
|
//#endregion
|
|
554
554
|
//#region src/configs/deMorgan.d.ts
|
|
555
555
|
/**
|
|
556
556
|
* Options type of {@link configDeMorgan}
|
|
557
557
|
*/
|
|
558
|
-
type ConfigDeMorganOptions = OptionsOverrides;
|
|
558
|
+
export type ConfigDeMorganOptions = OptionsOverrides;
|
|
559
559
|
/**
|
|
560
560
|
* Config for optimize logic
|
|
561
561
|
*
|
|
@@ -564,13 +564,13 @@ type ConfigDeMorganOptions = OptionsOverrides;
|
|
|
564
564
|
* @param options - {@link ConfigDeMorganOptions}
|
|
565
565
|
* @returns ESLint configs
|
|
566
566
|
*/
|
|
567
|
-
declare const configDeMorgan: (options?: ConfigDeMorganOptions) => TypedConfigItem[];
|
|
567
|
+
export declare const configDeMorgan: (options?: ConfigDeMorganOptions) => TypedConfigItem[];
|
|
568
568
|
//#endregion
|
|
569
569
|
//#region src/configs/markdown.d.ts
|
|
570
570
|
/**
|
|
571
571
|
* Options type of {@link configMarkdown}
|
|
572
572
|
*/
|
|
573
|
-
type ConfigMarkdownOptions = OptionsFiles & OptionsOverrides & Pick<OptionsShareable, 'extraFileExtensions'>;
|
|
573
|
+
export type ConfigMarkdownOptions = OptionsFiles & OptionsOverrides & Pick<OptionsShareable, 'extraFileExtensions'>;
|
|
574
574
|
/**
|
|
575
575
|
* Config for markdown files
|
|
576
576
|
*
|
|
@@ -579,13 +579,13 @@ type ConfigMarkdownOptions = OptionsFiles & OptionsOverrides & Pick<OptionsShare
|
|
|
579
579
|
* @param options - {@link ConfigMarkdownOptions}
|
|
580
580
|
* @returns ESLint configs
|
|
581
581
|
*/
|
|
582
|
-
declare const configMarkdown: (options?: ConfigMarkdownOptions) => TypedConfigItem[];
|
|
582
|
+
export declare const configMarkdown: (options?: ConfigMarkdownOptions) => TypedConfigItem[];
|
|
583
583
|
//#endregion
|
|
584
584
|
//#region src/configs/prettier.d.ts
|
|
585
585
|
/**
|
|
586
586
|
* Options type of {@link configPrettier}
|
|
587
587
|
*/
|
|
588
|
-
interface ConfigPrettierOptions extends OptionsOverrides {
|
|
588
|
+
export interface ConfigPrettierOptions extends OptionsOverrides {
|
|
589
589
|
/**
|
|
590
590
|
* Glob of built-in disabled files
|
|
591
591
|
*
|
|
@@ -613,17 +613,17 @@ interface ConfigPrettierOptions extends OptionsOverrides {
|
|
|
613
613
|
* @param options - {@link ConfigPrettierOptions}
|
|
614
614
|
* @returns ESLint configs
|
|
615
615
|
*/
|
|
616
|
-
declare const configPrettier: (options?: ConfigPrettierOptions) => TypedConfigItem[];
|
|
616
|
+
export declare const configPrettier: (options?: ConfigPrettierOptions) => TypedConfigItem[];
|
|
617
617
|
//#endregion
|
|
618
618
|
//#region src/configs/specials.d.ts
|
|
619
619
|
/**
|
|
620
620
|
* Options for a special config branch
|
|
621
621
|
*/
|
|
622
|
-
type ConfigSpecialsBranchOptions = OptionsFiles & OptionsOverrides;
|
|
622
|
+
export type ConfigSpecialsBranchOptions = OptionsFiles & OptionsOverrides;
|
|
623
623
|
/**
|
|
624
624
|
* Options for {@link configSpecials}
|
|
625
625
|
*/
|
|
626
|
-
interface ConfigSpecialsOptions {
|
|
626
|
+
export interface ConfigSpecialsOptions {
|
|
627
627
|
/**
|
|
628
628
|
* More special case configs
|
|
629
629
|
*/
|
|
@@ -665,13 +665,13 @@ interface ConfigSpecialsOptions {
|
|
|
665
665
|
* @param options - {@link ConfigSpecialsOptions}
|
|
666
666
|
* @returns ESLint configs
|
|
667
667
|
*/
|
|
668
|
-
declare const configSpecials: (options?: ConfigSpecialsOptions) => TypedConfigItem[];
|
|
668
|
+
export declare const configSpecials: (options?: ConfigSpecialsOptions) => TypedConfigItem[];
|
|
669
669
|
//#endregion
|
|
670
670
|
//#region src/configs/gitignore.d.ts
|
|
671
671
|
/**
|
|
672
672
|
* Options type of {@link configGitIgnore}
|
|
673
673
|
*/
|
|
674
|
-
type ConfigGitIgnoreOptions = Omit<FlatGitignoreOptions, 'strict'> & {
|
|
674
|
+
export type ConfigGitIgnoreOptions = Omit<FlatGitignoreOptions, 'strict'> & {
|
|
675
675
|
/**
|
|
676
676
|
* Throw an error if gitignore file not found.
|
|
677
677
|
*
|
|
@@ -687,13 +687,13 @@ type ConfigGitIgnoreOptions = Omit<FlatGitignoreOptions, 'strict'> & {
|
|
|
687
687
|
* @param options - {@link ConfigGitIgnoreOptions}
|
|
688
688
|
* @returns ESLint configs
|
|
689
689
|
*/
|
|
690
|
-
declare const configGitIgnore: (options?: ConfigGitIgnoreOptions) => TypedConfigItem[];
|
|
690
|
+
export declare const configGitIgnore: (options?: ConfigGitIgnoreOptions) => TypedConfigItem[];
|
|
691
691
|
//#endregion
|
|
692
692
|
//#region src/configs/javascript.d.ts
|
|
693
693
|
/**
|
|
694
694
|
* Options type of {@link configJavaScript}
|
|
695
695
|
*/
|
|
696
|
-
type ConfigJavaScriptOptions = OptionsOverrides & {
|
|
696
|
+
export type ConfigJavaScriptOptions = OptionsOverrides & {
|
|
697
697
|
/**
|
|
698
698
|
* Enable strict checking for JavaScript files
|
|
699
699
|
*
|
|
@@ -714,14 +714,14 @@ type ConfigJavaScriptOptions = OptionsOverrides & {
|
|
|
714
714
|
* @param options - {@link ConfigJavaScriptOptions}
|
|
715
715
|
* @returns ESLint configs
|
|
716
716
|
*/
|
|
717
|
-
declare const configJavaScript: (options?: ConfigJavaScriptOptions) => TypedConfigItem[];
|
|
718
|
-
declare const configJSX: () => TypedConfigItem[];
|
|
717
|
+
export declare const configJavaScript: (options?: ConfigJavaScriptOptions) => TypedConfigItem[];
|
|
718
|
+
export declare const configJSX: () => TypedConfigItem[];
|
|
719
719
|
//#endregion
|
|
720
720
|
//#region src/configs/typescript.d.ts
|
|
721
721
|
/**
|
|
722
722
|
* Options type of {@link configTypeScript}
|
|
723
723
|
*/
|
|
724
|
-
type ConfigTypeScriptOptions = OptionsFiles & OptionsOverrides & Pick<OptionsShareable, 'extraFileExtensions' | 'ecmaVersion'> & {
|
|
724
|
+
export type ConfigTypeScriptOptions = OptionsFiles & OptionsOverrides & Pick<OptionsShareable, 'extraFileExtensions' | 'ecmaVersion'> & {
|
|
725
725
|
/**
|
|
726
726
|
* Glob patterns for files that should be type aware.
|
|
727
727
|
* @default ['**\/*.{ts,tsx}']
|
|
@@ -757,13 +757,13 @@ type ConfigTypeScriptOptions = OptionsFiles & OptionsOverrides & Pick<OptionsSha
|
|
|
757
757
|
* @param options - {@link ConfigTypeScriptOptions}
|
|
758
758
|
* @returns ESLint configs
|
|
759
759
|
*/
|
|
760
|
-
declare const configTypeScript: (options?: ConfigTypeScriptOptions) => TypedConfigItem[];
|
|
760
|
+
export declare const configTypeScript: (options?: ConfigTypeScriptOptions) => TypedConfigItem[];
|
|
761
761
|
//#endregion
|
|
762
762
|
//#region src/configs/eslintPlugin.d.ts
|
|
763
763
|
/**
|
|
764
764
|
* Options type of {@link configESLintPlugin}
|
|
765
765
|
*/
|
|
766
|
-
type ConfigESLintPluginOptions = OptionsOverrides;
|
|
766
|
+
export type ConfigESLintPluginOptions = OptionsOverrides;
|
|
767
767
|
/**
|
|
768
768
|
* Config for eslint plugin
|
|
769
769
|
*
|
|
@@ -772,13 +772,13 @@ type ConfigESLintPluginOptions = OptionsOverrides;
|
|
|
772
772
|
* @param options - {@link ConfigESLintPluginOptions}
|
|
773
773
|
* @returns ESLint configs
|
|
774
774
|
*/
|
|
775
|
-
declare const configESLintPlugin: (options?: ConfigESLintPluginOptions) => Promise<TypedConfigItem[]>;
|
|
775
|
+
export declare const configESLintPlugin: (options?: ConfigESLintPluginOptions) => Promise<TypedConfigItem[]>;
|
|
776
776
|
//#endregion
|
|
777
777
|
//#region src/configs/githubAction.d.ts
|
|
778
778
|
/**
|
|
779
779
|
* Options type of {@link configGitHubAction}
|
|
780
780
|
*/
|
|
781
|
-
type ConfigGitHubActionOptions = OptionsFiles & OptionsOverrides;
|
|
781
|
+
export type ConfigGitHubActionOptions = OptionsFiles & OptionsOverrides;
|
|
782
782
|
/**
|
|
783
783
|
* Config for github action files
|
|
784
784
|
*
|
|
@@ -787,7 +787,7 @@ type ConfigGitHubActionOptions = OptionsFiles & OptionsOverrides;
|
|
|
787
787
|
* @param options - {@link ConfigGitHubActionOptions}
|
|
788
788
|
* @returns ESLint configs
|
|
789
789
|
*/
|
|
790
|
-
declare const configGitHubAction: (options?: ConfigGitHubActionOptions) => TypedConfigItem[];
|
|
790
|
+
export declare const configGitHubAction: (options?: ConfigGitHubActionOptions) => TypedConfigItem[];
|
|
791
791
|
//#endregion
|
|
792
792
|
//#region src/configs/perfectionist.d.ts
|
|
793
793
|
/**
|
|
@@ -795,22 +795,22 @@ declare const configGitHubAction: (options?: ConfigGitHubActionOptions) => Typed
|
|
|
795
795
|
*
|
|
796
796
|
* @see {@link https://perfectionist.dev/rules/sort-imports#partitionbycomment}
|
|
797
797
|
*/
|
|
798
|
-
type PerfectionistPartitionByComment = boolean | string | string[] | {
|
|
798
|
+
export type PerfectionistPartitionByComment = boolean | string | string[] | {
|
|
799
799
|
block?: boolean | string | string[];
|
|
800
800
|
line?: boolean | string | string[];
|
|
801
801
|
};
|
|
802
802
|
/**
|
|
803
803
|
* Options for the common perfectionist config
|
|
804
804
|
*/
|
|
805
|
-
type ConfigPerfectionistCommonOptions = OptionsOverrides;
|
|
805
|
+
export type ConfigPerfectionistCommonOptions = OptionsOverrides;
|
|
806
806
|
/**
|
|
807
807
|
* Options for a scoped perfectionist config branch
|
|
808
808
|
*/
|
|
809
|
-
type ConfigPerfectionistBranchOptions = OptionsFiles & OptionsOverrides;
|
|
809
|
+
export type ConfigPerfectionistBranchOptions = OptionsFiles & OptionsOverrides;
|
|
810
810
|
/**
|
|
811
811
|
* Options type of {@link configPerfectionist}
|
|
812
812
|
*/
|
|
813
|
-
interface ConfigPerfectionistOptions {
|
|
813
|
+
export interface ConfigPerfectionistOptions {
|
|
814
814
|
/**
|
|
815
815
|
* Enable all perfectionist rule
|
|
816
816
|
*
|
|
@@ -853,13 +853,13 @@ interface ConfigPerfectionistOptions {
|
|
|
853
853
|
* @param options - {@link ConfigPerfectionistOptions}
|
|
854
854
|
* @returns ESLint configs
|
|
855
855
|
*/
|
|
856
|
-
declare const configPerfectionist: (options?: ConfigPerfectionistOptions) => TypedConfigItem[];
|
|
856
|
+
export declare const configPerfectionist: (options?: ConfigPerfectionistOptions) => TypedConfigItem[];
|
|
857
857
|
//#endregion
|
|
858
858
|
//#region src/configs/unusedImports.d.ts
|
|
859
859
|
/**
|
|
860
860
|
* Options type of {@link configUnusedImports}
|
|
861
861
|
*/
|
|
862
|
-
type ConfigUnusedImportsOptions = OptionsOverrides;
|
|
862
|
+
export type ConfigUnusedImportsOptions = OptionsOverrides;
|
|
863
863
|
/**
|
|
864
864
|
* Config for remove unused imports
|
|
865
865
|
*
|
|
@@ -868,13 +868,13 @@ type ConfigUnusedImportsOptions = OptionsOverrides;
|
|
|
868
868
|
* @param options - {@link ConfigUnusedImportsOptions}
|
|
869
869
|
* @returns ESLint configs
|
|
870
870
|
*/
|
|
871
|
-
declare const configUnusedImports: (options?: ConfigUnusedImportsOptions) => Promise<TypedConfigItem[]>;
|
|
871
|
+
export declare const configUnusedImports: (options?: ConfigUnusedImportsOptions) => Promise<TypedConfigItem[]>;
|
|
872
872
|
//#endregion
|
|
873
873
|
//#region src/configs/eslintComments.d.ts
|
|
874
874
|
/**
|
|
875
875
|
* Options type of {@link configESLintComments}
|
|
876
876
|
*/
|
|
877
|
-
type ConfigESLintCommentsOptions = OptionsOverrides;
|
|
877
|
+
export type ConfigESLintCommentsOptions = OptionsOverrides;
|
|
878
878
|
/**
|
|
879
879
|
* Config for eslint comments
|
|
880
880
|
*
|
|
@@ -883,7 +883,7 @@ type ConfigESLintCommentsOptions = OptionsOverrides;
|
|
|
883
883
|
* @param options - {@link ConfigESLintCommentsOptions}
|
|
884
884
|
* @returns ESLint configs
|
|
885
885
|
*/
|
|
886
|
-
declare const configESLintComments: (options?: ConfigESLintCommentsOptions) => TypedConfigItem[];
|
|
886
|
+
export declare const configESLintComments: (options?: ConfigESLintCommentsOptions) => TypedConfigItem[];
|
|
887
887
|
//#endregion
|
|
888
888
|
//#region src/types/typegen.d.ts
|
|
889
889
|
interface RuleOptions {
|
|
@@ -1473,6 +1473,11 @@ interface RuleOptions {
|
|
|
1473
1473
|
* @see https://typescript-eslint.io/rules/no-for-in-array
|
|
1474
1474
|
*/
|
|
1475
1475
|
'@typescript-eslint/no-for-in-array'?: Linter.RuleEntry<[]>;
|
|
1476
|
+
/**
|
|
1477
|
+
* Disallow type operations that resolve to the "empty object" type
|
|
1478
|
+
* @see https://typescript-eslint.io/rules/no-generated-empty-object-type
|
|
1479
|
+
*/
|
|
1480
|
+
'@typescript-eslint/no-generated-empty-object-type'?: Linter.RuleEntry<[]>;
|
|
1476
1481
|
/**
|
|
1477
1482
|
* Disallow the use of `eval()`-like functions
|
|
1478
1483
|
* @see https://typescript-eslint.io/rules/no-implied-eval
|
|
@@ -3462,6 +3467,11 @@ interface RuleOptions {
|
|
|
3462
3467
|
* @see https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/text-escaping.md#repos-sticky-header
|
|
3463
3468
|
*/
|
|
3464
3469
|
'jsdoc/text-escaping'?: Linter.RuleEntry<JsdocTextEscaping>;
|
|
3470
|
+
/**
|
|
3471
|
+
* Disallows (or requires descriptions for) `@ts-<directive>` comments, mirroring `@typescript-eslint/ban-ts-comment`.
|
|
3472
|
+
* @see https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/ts-ban-ts-comment.md#repos-sticky-header
|
|
3473
|
+
*/
|
|
3474
|
+
'jsdoc/ts-ban-ts-comment'?: Linter.RuleEntry<JsdocTsBanTsComment>;
|
|
3465
3475
|
/**
|
|
3466
3476
|
* Prefers either function properties or method signatures
|
|
3467
3477
|
* @see https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/ts-method-signature-style.md#repos-sticky-header
|
|
@@ -5002,11 +5012,21 @@ interface RuleOptions {
|
|
|
5002
5012
|
* @deprecated
|
|
5003
5013
|
*/
|
|
5004
5014
|
'nonblock-statement-body-position'?: Linter.RuleEntry<NonblockStatementBodyPosition>;
|
|
5015
|
+
/**
|
|
5016
|
+
* enforce consistent indentation in unindent tagged templates
|
|
5017
|
+
* @see https://eslint-plugin.ntnyq.com/rules/indent-unindent.html
|
|
5018
|
+
*/
|
|
5019
|
+
'ntnyq/indent-unindent'?: Linter.RuleEntry<NtnyqIndentUnindent>;
|
|
5005
5020
|
/**
|
|
5006
5021
|
* disallow duplicate exports statement
|
|
5007
5022
|
* @see https://eslint-plugin.ntnyq.com/rules/no-duplicate-exports.html
|
|
5008
5023
|
*/
|
|
5009
5024
|
'ntnyq/no-duplicate-exports'?: Linter.RuleEntry<NtnyqNoDuplicateExports>;
|
|
5025
|
+
/**
|
|
5026
|
+
* disallow explicit void return types on function implementations
|
|
5027
|
+
* @see https://eslint-plugin.ntnyq.com/rules/no-explicit-void-return-type.html
|
|
5028
|
+
*/
|
|
5029
|
+
'ntnyq/no-explicit-void-return-type'?: Linter.RuleEntry<[]>;
|
|
5010
5030
|
/**
|
|
5011
5031
|
* disallow usage of typescript member accessibility
|
|
5012
5032
|
* @see https://eslint-plugin.ntnyq.com/rules/no-member-accessibility.html
|
|
@@ -5254,6 +5274,11 @@ interface RuleOptions {
|
|
|
5254
5274
|
* @see https://github.com/antfu/pnpm-workspace-utils/tree/main/packages/eslint-plugin-pnpm/src/rules/json/json-valid-catalog.test.ts
|
|
5255
5275
|
*/
|
|
5256
5276
|
'pnpm/json-valid-catalog'?: Linter.RuleEntry<PnpmJsonValidCatalog>;
|
|
5277
|
+
/**
|
|
5278
|
+
* Require blank lines around multi-line entries in `pnpm-workspace.yaml`, and disallow them between single-line entries
|
|
5279
|
+
* @see https://github.com/antfu/pnpm-workspace-utils/tree/main/packages/eslint-plugin-pnpm/src/rules/yaml/yaml-blank-lines.test.ts
|
|
5280
|
+
*/
|
|
5281
|
+
'pnpm/yaml-blank-lines'?: Linter.RuleEntry<[]>;
|
|
5257
5282
|
/**
|
|
5258
5283
|
* Enforce settings in `pnpm-workspace.yaml`
|
|
5259
5284
|
* @see https://github.com/antfu/pnpm-workspace-utils/tree/main/packages/eslint-plugin-pnpm/src/rules/yaml/yaml-enforce-settings.test.ts
|
|
@@ -9323,6 +9348,11 @@ interface RuleOptions {
|
|
|
9323
9348
|
* @see https://eslint.vuejs.org/rules/no-setup-props-reactivity-loss.html
|
|
9324
9349
|
*/
|
|
9325
9350
|
'vue/no-setup-props-reactivity-loss'?: Linter.RuleEntry<[]>;
|
|
9351
|
+
/**
|
|
9352
|
+
* disallow the use of event names that collide with native web event names
|
|
9353
|
+
* @see https://eslint.vuejs.org/rules/no-shadow-native-events.html
|
|
9354
|
+
*/
|
|
9355
|
+
'vue/no-shadow-native-events'?: Linter.RuleEntry<[]>;
|
|
9326
9356
|
/**
|
|
9327
9357
|
* enforce component's data property to be a function
|
|
9328
9358
|
* @see https://eslint.vuejs.org/rules/no-shared-component-data.html
|
|
@@ -10105,10 +10135,12 @@ type EslintCommunityEslintCommentsDisableEnablePair = [] | [{
|
|
|
10105
10135
|
type EslintCommunityEslintCommentsNoRestrictedDisable = string[];
|
|
10106
10136
|
// ----- @eslint-community/eslint-comments/no-use -----
|
|
10107
10137
|
type EslintCommunityEslintCommentsNoUse = [] | [{
|
|
10108
|
-
|
|
10138
|
+
additionalDirectives?: string[];
|
|
10139
|
+
allow?: string[];
|
|
10109
10140
|
}];
|
|
10110
10141
|
// ----- @eslint-community/eslint-comments/require-description -----
|
|
10111
10142
|
type EslintCommunityEslintCommentsRequireDescription = [] | [{
|
|
10143
|
+
additionalDirectives?: string[];
|
|
10112
10144
|
ignore?: ("eslint" | "eslint-disable" | "eslint-disable-line" | "eslint-disable-next-line" | "eslint-enable" | "eslint-env" | "exported" | "global" | "globals")[];
|
|
10113
10145
|
}];
|
|
10114
10146
|
// ----- @html-eslint/attrs-newline -----
|
|
@@ -12175,6 +12207,7 @@ type JsdocNoUndefinedTypes = [] | [{
|
|
|
12175
12207
|
type JsdocNoUnnecessaryTypeAssertion = [] | [{
|
|
12176
12208
|
checkLiteralConstAssertions?: boolean;
|
|
12177
12209
|
enableFixer?: boolean;
|
|
12210
|
+
preferConstToLiteralTuples?: boolean;
|
|
12178
12211
|
treatAnyAsRedundant?: boolean;
|
|
12179
12212
|
typesToIgnore?: string[];
|
|
12180
12213
|
}];
|
|
@@ -12451,6 +12484,22 @@ type JsdocTextEscaping = [] | [{
|
|
|
12451
12484
|
escapeHTML?: boolean;
|
|
12452
12485
|
escapeMarkdown?: boolean;
|
|
12453
12486
|
}];
|
|
12487
|
+
// ----- jsdoc/ts-ban-ts-comment -----
|
|
12488
|
+
type JsdocTsBanTsComment = [] | [{
|
|
12489
|
+
minimumDescriptionLength?: number;
|
|
12490
|
+
"ts-check"?: (boolean | "allow-with-description" | {
|
|
12491
|
+
descriptionFormat?: string;
|
|
12492
|
+
});
|
|
12493
|
+
"ts-expect-error"?: (boolean | "allow-with-description" | {
|
|
12494
|
+
descriptionFormat?: string;
|
|
12495
|
+
});
|
|
12496
|
+
"ts-ignore"?: (boolean | "allow-with-description" | {
|
|
12497
|
+
descriptionFormat?: string;
|
|
12498
|
+
});
|
|
12499
|
+
"ts-nocheck"?: (boolean | "allow-with-description" | {
|
|
12500
|
+
descriptionFormat?: string;
|
|
12501
|
+
});
|
|
12502
|
+
}];
|
|
12454
12503
|
// ----- jsdoc/ts-method-signature-style -----
|
|
12455
12504
|
type JsdocTsMethodSignatureStyle = [] | [("method" | "property")] | [("method" | "property"), {
|
|
12456
12505
|
enableFixer?: boolean;
|
|
@@ -14051,6 +14100,11 @@ type NonblockStatementBodyPosition = [] | [("beside" | "below" | "any")] | [("be
|
|
|
14051
14100
|
for?: ("beside" | "below" | "any");
|
|
14052
14101
|
};
|
|
14053
14102
|
}];
|
|
14103
|
+
// ----- ntnyq/indent-unindent -----
|
|
14104
|
+
type NtnyqIndentUnindent = [] | [{
|
|
14105
|
+
indent?: number;
|
|
14106
|
+
tags?: string[];
|
|
14107
|
+
}];
|
|
14054
14108
|
// ----- ntnyq/no-duplicate-exports -----
|
|
14055
14109
|
type NtnyqNoDuplicateExports = [] | [{
|
|
14056
14110
|
style?: ("inline" | "separate");
|
|
@@ -14070,6 +14124,7 @@ type NtnyqPreferNewlineAfterFileHeader = [] | [{
|
|
|
14070
14124
|
type NtnyqPreferObjectMethodSyntax = [] | [{
|
|
14071
14125
|
allowArrowFunctions?: (boolean | "singleLineOnly");
|
|
14072
14126
|
allowedPropertyNames?: string[];
|
|
14127
|
+
avoidQuotes?: boolean;
|
|
14073
14128
|
fix?: boolean;
|
|
14074
14129
|
}];
|
|
14075
14130
|
// ----- object-curly-newline -----
|
|
@@ -19568,7 +19623,7 @@ type VueNoDeprecatedSlotAttribute = [] | [{
|
|
|
19568
19623
|
}];
|
|
19569
19624
|
// ----- vue/no-dupe-keys -----
|
|
19570
19625
|
type VueNoDupeKeys = [] | [{
|
|
19571
|
-
groups?:
|
|
19626
|
+
groups?: string[];
|
|
19572
19627
|
}];
|
|
19573
19628
|
// ----- vue/no-duplicate-attr-inheritance -----
|
|
19574
19629
|
type VueNoDuplicateAttrInheritance = [] | [{
|
|
@@ -19691,8 +19746,8 @@ type VueNoReservedComponentNames = [] | [{
|
|
|
19691
19746
|
}];
|
|
19692
19747
|
// ----- vue/no-reserved-keys -----
|
|
19693
19748
|
type VueNoReservedKeys = [] | [{
|
|
19694
|
-
reserved?:
|
|
19695
|
-
groups?:
|
|
19749
|
+
reserved?: string[];
|
|
19750
|
+
groups?: string[];
|
|
19696
19751
|
}];
|
|
19697
19752
|
// ----- vue/no-reserved-props -----
|
|
19698
19753
|
type VueNoReservedProps = [] | [{
|
|
@@ -19780,7 +19835,7 @@ type VueNoTemplateTargetBlank = [] | [{
|
|
|
19780
19835
|
}];
|
|
19781
19836
|
// ----- vue/no-undef-components -----
|
|
19782
19837
|
type VueNoUndefComponents = [] | [{
|
|
19783
|
-
ignorePatterns?:
|
|
19838
|
+
ignorePatterns?: string[];
|
|
19784
19839
|
}];
|
|
19785
19840
|
// ----- vue/no-undef-directives -----
|
|
19786
19841
|
type VueNoUndefDirectives = [] | [{
|
|
@@ -19887,7 +19942,7 @@ type VueOperatorLinebreak = [] | [("after" | "before" | "none" | null)] | [("aft
|
|
|
19887
19942
|
}];
|
|
19888
19943
|
// ----- vue/order-in-components -----
|
|
19889
19944
|
type VueOrderInComponents = [] | [{
|
|
19890
|
-
order?:
|
|
19945
|
+
order?: (string | string[])[];
|
|
19891
19946
|
}];
|
|
19892
19947
|
// ----- vue/padding-line-between-blocks -----
|
|
19893
19948
|
type VuePaddingLineBetweenBlocks = [] | [("never" | "always")];
|
|
@@ -19976,8 +20031,8 @@ type VueSlotNameCasing = [] | [("camelCase" | "kebab-case" | "singleword")];
|
|
|
19976
20031
|
// ----- vue/sort-keys -----
|
|
19977
20032
|
type VueSortKeys = [] | [("asc" | "desc")] | [("asc" | "desc"), {
|
|
19978
20033
|
caseSensitive?: boolean;
|
|
19979
|
-
ignoreChildrenOf?:
|
|
19980
|
-
ignoreGrandchildrenOf?:
|
|
20034
|
+
ignoreChildrenOf?: string[];
|
|
20035
|
+
ignoreGrandchildrenOf?: string[];
|
|
19981
20036
|
minKeys?: number;
|
|
19982
20037
|
natural?: boolean;
|
|
19983
20038
|
allowLineSeparatedGroups?: boolean;
|
|
@@ -20036,7 +20091,7 @@ type VueValidVFor = [] | [{
|
|
|
20036
20091
|
}];
|
|
20037
20092
|
// ----- vue/valid-v-on -----
|
|
20038
20093
|
type VueValidVOn = [] | [{
|
|
20039
|
-
modifiers?:
|
|
20094
|
+
modifiers?: string[];
|
|
20040
20095
|
}];
|
|
20041
20096
|
// ----- vue/valid-v-slot -----
|
|
20042
20097
|
type VueValidVSlot = [] | [{
|
|
@@ -20289,37 +20344,37 @@ type ConfigNames = 'ntnyq/gitignore' | 'ntnyq/ignores' | 'ntnyq/jsx' | 'ntnyq/no
|
|
|
20289
20344
|
/**
|
|
20290
20345
|
* ESLint config
|
|
20291
20346
|
*/
|
|
20292
|
-
type ESLintConfig<Rules extends ESLintRulesRecord = ESLintRulesRecord> = Linter.Config<Rules>;
|
|
20347
|
+
export type ESLintConfig<Rules extends ESLintRulesRecord = ESLintRulesRecord> = Linter.Config<Rules>;
|
|
20293
20348
|
/**
|
|
20294
20349
|
* ESLint parser
|
|
20295
20350
|
*/
|
|
20296
|
-
type ESLintParser = Linter.Parser;
|
|
20351
|
+
export type ESLintParser = Linter.Parser;
|
|
20297
20352
|
/**
|
|
20298
20353
|
* ESLint parserOptions
|
|
20299
20354
|
*/
|
|
20300
|
-
type ESLintParserOptions = Linter.ParserOptions;
|
|
20355
|
+
export type ESLintParserOptions = Linter.ParserOptions;
|
|
20301
20356
|
/**
|
|
20302
20357
|
* ESLint processor
|
|
20303
20358
|
*/
|
|
20304
|
-
type ESLintProcessor = Linter.Processor;
|
|
20359
|
+
export type ESLintProcessor = Linter.Processor;
|
|
20305
20360
|
/**
|
|
20306
20361
|
* ESLint rule severity
|
|
20307
20362
|
*
|
|
20308
20363
|
* for config options use, don't need `off`
|
|
20309
20364
|
*/
|
|
20310
|
-
type ESLintRuleSeverity = 'error' | 'warn';
|
|
20365
|
+
export type ESLintRuleSeverity = 'error' | 'warn';
|
|
20311
20366
|
/**
|
|
20312
20367
|
* ESLint rules
|
|
20313
20368
|
*/
|
|
20314
|
-
type ESLintRulesRecord = Linter.RulesRecord;
|
|
20369
|
+
export type ESLintRulesRecord = Linter.RulesRecord;
|
|
20315
20370
|
/**
|
|
20316
20371
|
* TypeScript ESLint parserOptions
|
|
20317
20372
|
*/
|
|
20318
|
-
type TSESLintParserOptions = Pretty<Required<Required<ConfigWithExtends>['languageOptions']>['parserOptions']>;
|
|
20373
|
+
export type TSESLintParserOptions = Pretty<Required<Required<ConfigWithExtends>['languageOptions']>['parserOptions']>;
|
|
20319
20374
|
/**
|
|
20320
20375
|
* Typed flat config item
|
|
20321
20376
|
*/
|
|
20322
|
-
type TypedConfigItem = Omit<Linter.Config<ESLintRulesRecord & RuleOptions>, 'plugins'> & {
|
|
20377
|
+
export type TypedConfigItem = Omit<Linter.Config<ESLintRulesRecord & RuleOptions>, 'plugins'> & {
|
|
20323
20378
|
/**
|
|
20324
20379
|
* Most plugin are not properly typed
|
|
20325
20380
|
*/
|
|
@@ -20330,25 +20385,25 @@ type TypedConfigItem = Omit<Linter.Config<ESLintRulesRecord & RuleOptions>, 'plu
|
|
|
20330
20385
|
/**
|
|
20331
20386
|
* Options for overrides `files`
|
|
20332
20387
|
*/
|
|
20333
|
-
interface OptionsFiles {
|
|
20388
|
+
export interface OptionsFiles {
|
|
20334
20389
|
files?: ESLintConfig['files'];
|
|
20335
20390
|
}
|
|
20336
20391
|
/**
|
|
20337
20392
|
* Options for overrides ignores for specific config
|
|
20338
20393
|
*/
|
|
20339
|
-
interface OptionsIgnores {
|
|
20394
|
+
export interface OptionsIgnores {
|
|
20340
20395
|
ignores?: ESLintConfig['ignores'];
|
|
20341
20396
|
}
|
|
20342
20397
|
/**
|
|
20343
20398
|
* Options for overrides `rules`
|
|
20344
20399
|
*/
|
|
20345
|
-
interface OptionsOverrides<Rules extends TypedConfigItem['rules'] = TypedConfigItem['rules']> {
|
|
20400
|
+
export interface OptionsOverrides<Rules extends TypedConfigItem['rules'] = TypedConfigItem['rules']> {
|
|
20346
20401
|
overrides?: Rules;
|
|
20347
20402
|
}
|
|
20348
20403
|
/**
|
|
20349
20404
|
* Options for formatter configs
|
|
20350
20405
|
*/
|
|
20351
|
-
interface OptionsFormatter {
|
|
20406
|
+
export interface OptionsFormatter {
|
|
20352
20407
|
/**
|
|
20353
20408
|
* Whether using formatter config
|
|
20354
20409
|
*/
|
|
@@ -20357,7 +20412,7 @@ interface OptionsFormatter {
|
|
|
20357
20412
|
/**
|
|
20358
20413
|
* Options for shareable cross plugins
|
|
20359
20414
|
*/
|
|
20360
|
-
interface OptionsShareable {
|
|
20415
|
+
export interface OptionsShareable {
|
|
20361
20416
|
/**
|
|
20362
20417
|
* The ECMAScript version of the code being linted
|
|
20363
20418
|
* @default 'latest'
|
|
@@ -20378,7 +20433,7 @@ interface OptionsShareable {
|
|
|
20378
20433
|
/**
|
|
20379
20434
|
* Config factory options
|
|
20380
20435
|
*/
|
|
20381
|
-
interface ConfigOptions {
|
|
20436
|
+
export interface ConfigOptions {
|
|
20382
20437
|
/**
|
|
20383
20438
|
* @private
|
|
20384
20439
|
*/
|
|
@@ -20441,7 +20496,7 @@ interface ConfigOptions {
|
|
|
20441
20496
|
/**
|
|
20442
20497
|
* Prettier options
|
|
20443
20498
|
*/
|
|
20444
|
-
type PrettierOptions = Pick<Options$1, 'arrowParens' | 'bracketSameLine' | 'bracketSpacing' | 'embeddedLanguageFormatting' | 'endOfLine' | 'experimentalOperatorPosition' | 'experimentalTernaries' | 'htmlWhitespaceSensitivity' | 'insertPragma' | 'jsxSingleQuote' | 'objectWrap' | 'plugins' | 'printWidth' | 'proseWrap' | 'quoteProps' | 'rangeEnd' | 'rangeStart' | 'requirePragma' | 'semi' | 'singleAttributePerLine' | 'singleQuote' | 'tabWidth' | 'trailingComma' | 'useTabs' | 'vueIndentScriptAndStyle'> & {
|
|
20499
|
+
export type PrettierOptions = Pick<Options$1, 'arrowParens' | 'bracketSameLine' | 'bracketSpacing' | 'embeddedLanguageFormatting' | 'endOfLine' | 'experimentalOperatorPosition' | 'experimentalTernaries' | 'htmlWhitespaceSensitivity' | 'insertPragma' | 'jsxSingleQuote' | 'objectWrap' | 'plugins' | 'printWidth' | 'proseWrap' | 'quoteProps' | 'rangeEnd' | 'rangeStart' | 'requirePragma' | 'semi' | 'singleAttributePerLine' | 'singleQuote' | 'tabWidth' | 'trailingComma' | 'useTabs' | 'vueIndentScriptAndStyle'> & {
|
|
20445
20500
|
parser?: BuiltInParserName;
|
|
20446
20501
|
};
|
|
20447
20502
|
//#endregion
|
|
@@ -20449,90 +20504,90 @@ type PrettierOptions = Pick<Options$1, 'arrowParens' | 'bracketSameLine' | 'brac
|
|
|
20449
20504
|
/**
|
|
20450
20505
|
* Config factory
|
|
20451
20506
|
*/
|
|
20452
|
-
declare function defineESLintConfig(options?: ConfigOptions, ...userConfigs: Awaitable<TypedConfigItem | TypedConfigItem[] | ESLintConfig[]>[]): FlatConfigComposer<TypedConfigItem, ConfigNames>;
|
|
20507
|
+
export declare function defineESLintConfig(options?: ConfigOptions, ...userConfigs: Awaitable<TypedConfigItem | TypedConfigItem[] | ESLintConfig[]>[]): FlatConfigComposer<TypedConfigItem, ConfigNames>;
|
|
20453
20508
|
//#endregion
|
|
20454
20509
|
//#region src/globs.d.ts
|
|
20455
20510
|
/**
|
|
20456
20511
|
* @file globs constants
|
|
20457
20512
|
*/
|
|
20458
|
-
declare const GLOB_SRC_EXT: string;
|
|
20459
|
-
declare const GLOB_SRC: string;
|
|
20460
|
-
declare const GLOB_JS: string;
|
|
20461
|
-
declare const GLOB_JSX: string;
|
|
20462
|
-
declare const GLOB_JSX_ONLY: string;
|
|
20463
|
-
declare const GLOB_TS: string;
|
|
20464
|
-
declare const GLOB_TSX: string;
|
|
20465
|
-
declare const GLOB_TSX_ONLY: string;
|
|
20466
|
-
declare const GLOB_DTS: string;
|
|
20467
|
-
declare const GLOB_TYPES: string[];
|
|
20468
|
-
declare const GLOB_TYPE_TEST: string[];
|
|
20469
|
-
declare const GLOB_TEST: string[];
|
|
20470
|
-
declare const GLOB_STYLE: string;
|
|
20471
|
-
declare const GLOB_CSS: string;
|
|
20472
|
-
declare const GLOB_LESS: string;
|
|
20473
|
-
declare const GLOB_SCSS: string;
|
|
20474
|
-
declare const GLOB_POSTCSS: string;
|
|
20475
|
-
declare const GLOB_JSON: string;
|
|
20476
|
-
declare const GLOB_JSON5: string;
|
|
20477
|
-
declare const GLOB_JSONC: string;
|
|
20478
|
-
declare const GLOB_PACKAGE_JSON: string;
|
|
20479
|
-
declare const GLOB_JSON_SCHEMA: string[];
|
|
20480
|
-
declare const GLOB_TSCONFIG_JSON: string[];
|
|
20481
|
-
declare const GLOB_YAML: string;
|
|
20482
|
-
declare const GLOB_PNPM_WORKSPACE_YAML: string;
|
|
20483
|
-
declare const GLOB_SVG: string;
|
|
20484
|
-
declare const GLOB_VUE: string;
|
|
20485
|
-
declare const GLOB_SVELTE: string;
|
|
20486
|
-
declare const GLOB_TOML: string;
|
|
20487
|
-
declare const GLOB_HTML: string;
|
|
20488
|
-
declare const GLOB_ASTRO: string;
|
|
20489
|
-
declare const GLOB_ASTRO_TS: string;
|
|
20490
|
-
declare const GLOB_MARKDOWN: string;
|
|
20491
|
-
declare const GLOB_MARKDOWN_CODE: string;
|
|
20492
|
-
declare const GLOB_MARKDOWN_NESTED: string;
|
|
20493
|
-
declare const GLOB_SRC_EXTENSIONS: string[];
|
|
20494
|
-
declare const GLOB_ALL_SRC: string[];
|
|
20495
|
-
declare const GLOB_PINIA_STORE: string;
|
|
20496
|
-
declare const GLOB_GITHUB_ACTION: string;
|
|
20497
|
-
declare const GLOB_NODE_MODULES: string;
|
|
20498
|
-
declare const GLOB_DIST: string;
|
|
20499
|
-
declare const GLOB_LOCKFILE: string[];
|
|
20500
|
-
declare const GLOB_EXCLUDE: string[];
|
|
20513
|
+
export declare const GLOB_SRC_EXT: string;
|
|
20514
|
+
export declare const GLOB_SRC: string;
|
|
20515
|
+
export declare const GLOB_JS: string;
|
|
20516
|
+
export declare const GLOB_JSX: string;
|
|
20517
|
+
export declare const GLOB_JSX_ONLY: string;
|
|
20518
|
+
export declare const GLOB_TS: string;
|
|
20519
|
+
export declare const GLOB_TSX: string;
|
|
20520
|
+
export declare const GLOB_TSX_ONLY: string;
|
|
20521
|
+
export declare const GLOB_DTS: string;
|
|
20522
|
+
export declare const GLOB_TYPES: string[];
|
|
20523
|
+
export declare const GLOB_TYPE_TEST: string[];
|
|
20524
|
+
export declare const GLOB_TEST: string[];
|
|
20525
|
+
export declare const GLOB_STYLE: string;
|
|
20526
|
+
export declare const GLOB_CSS: string;
|
|
20527
|
+
export declare const GLOB_LESS: string;
|
|
20528
|
+
export declare const GLOB_SCSS: string;
|
|
20529
|
+
export declare const GLOB_POSTCSS: string;
|
|
20530
|
+
export declare const GLOB_JSON: string;
|
|
20531
|
+
export declare const GLOB_JSON5: string;
|
|
20532
|
+
export declare const GLOB_JSONC: string;
|
|
20533
|
+
export declare const GLOB_PACKAGE_JSON: string;
|
|
20534
|
+
export declare const GLOB_JSON_SCHEMA: string[];
|
|
20535
|
+
export declare const GLOB_TSCONFIG_JSON: string[];
|
|
20536
|
+
export declare const GLOB_YAML: string;
|
|
20537
|
+
export declare const GLOB_PNPM_WORKSPACE_YAML: string;
|
|
20538
|
+
export declare const GLOB_SVG: string;
|
|
20539
|
+
export declare const GLOB_VUE: string;
|
|
20540
|
+
export declare const GLOB_SVELTE: string;
|
|
20541
|
+
export declare const GLOB_TOML: string;
|
|
20542
|
+
export declare const GLOB_HTML: string;
|
|
20543
|
+
export declare const GLOB_ASTRO: string;
|
|
20544
|
+
export declare const GLOB_ASTRO_TS: string;
|
|
20545
|
+
export declare const GLOB_MARKDOWN: string;
|
|
20546
|
+
export declare const GLOB_MARKDOWN_CODE: string;
|
|
20547
|
+
export declare const GLOB_MARKDOWN_NESTED: string;
|
|
20548
|
+
export declare const GLOB_SRC_EXTENSIONS: string[];
|
|
20549
|
+
export declare const GLOB_ALL_SRC: string[];
|
|
20550
|
+
export declare const GLOB_PINIA_STORE: string;
|
|
20551
|
+
export declare const GLOB_GITHUB_ACTION: string;
|
|
20552
|
+
export declare const GLOB_NODE_MODULES: string;
|
|
20553
|
+
export declare const GLOB_DIST: string;
|
|
20554
|
+
export declare const GLOB_LOCKFILE: string[];
|
|
20555
|
+
export declare const GLOB_EXCLUDE: string[];
|
|
20501
20556
|
//#endregion
|
|
20502
20557
|
//#region src/utils/env.d.ts
|
|
20503
20558
|
type ExistChecker = () => boolean;
|
|
20504
20559
|
/**
|
|
20505
20560
|
* Check whether Pinia is available in the current project.
|
|
20506
20561
|
*/
|
|
20507
|
-
declare const hasPinia: ExistChecker;
|
|
20562
|
+
export declare const hasPinia: ExistChecker;
|
|
20508
20563
|
/**
|
|
20509
20564
|
* Check whether Vitest is available in the current project.
|
|
20510
20565
|
*/
|
|
20511
|
-
declare const hasVitest: ExistChecker;
|
|
20566
|
+
export declare const hasVitest: ExistChecker;
|
|
20512
20567
|
/**
|
|
20513
20568
|
* Check whether TypeScript runtime or preview package is available.
|
|
20514
20569
|
*/
|
|
20515
|
-
declare const hasTypeScript: ExistChecker;
|
|
20570
|
+
export declare const hasTypeScript: ExistChecker;
|
|
20516
20571
|
/**
|
|
20517
20572
|
* Check whether shadcn-vue related dependencies are available.
|
|
20518
20573
|
*/
|
|
20519
|
-
declare const hasShadcnVue: ExistChecker;
|
|
20574
|
+
export declare const hasShadcnVue: ExistChecker;
|
|
20520
20575
|
/**
|
|
20521
20576
|
* Check whether UnoCSS runtime packages are available.
|
|
20522
20577
|
*/
|
|
20523
|
-
declare const hasUnoCSS: ExistChecker;
|
|
20578
|
+
export declare const hasUnoCSS: ExistChecker;
|
|
20524
20579
|
/**
|
|
20525
20580
|
* Check whether Vue ecosystem packages are available.
|
|
20526
20581
|
*/
|
|
20527
|
-
declare const hasVue: ExistChecker;
|
|
20582
|
+
export declare const hasVue: ExistChecker;
|
|
20528
20583
|
/**
|
|
20529
20584
|
* Check whether oxfmt is available in the current project.
|
|
20530
20585
|
*/
|
|
20531
|
-
declare const hasOxfmt: ExistChecker;
|
|
20586
|
+
export declare const hasOxfmt: ExistChecker;
|
|
20532
20587
|
/**
|
|
20533
20588
|
* Check whether Prettier is available in the current project.
|
|
20534
20589
|
*/
|
|
20535
|
-
declare const hasPrettier: ExistChecker;
|
|
20590
|
+
export declare const hasPrettier: ExistChecker;
|
|
20536
20591
|
//#endregion
|
|
20537
20592
|
//#region src/utils/getOverrides.d.ts
|
|
20538
20593
|
/**
|
|
@@ -20542,7 +20597,7 @@ declare const hasPrettier: ExistChecker;
|
|
|
20542
20597
|
* @param key - Sub-option key to read.
|
|
20543
20598
|
* @returns Rule override map when provided, otherwise an empty object.
|
|
20544
20599
|
*/
|
|
20545
|
-
declare function getOverrides<K extends keyof ConfigOptions>(options: ConfigOptions, key: K): Partial<TypedConfigItem['rules'] & RuleOptions>;
|
|
20600
|
+
export declare function getOverrides<K extends keyof ConfigOptions>(options: ConfigOptions, key: K): Partial<TypedConfigItem['rules'] & RuleOptions>;
|
|
20546
20601
|
//#endregion
|
|
20547
20602
|
//#region src/utils/ensurePackages.d.ts
|
|
20548
20603
|
/**
|
|
@@ -20556,7 +20611,7 @@ declare function getOverrides<K extends keyof ConfigOptions>(options: ConfigOpti
|
|
|
20556
20611
|
*
|
|
20557
20612
|
* @param packages - Package names to verify and optionally install.
|
|
20558
20613
|
*/
|
|
20559
|
-
declare function ensurePackages(packages: (string | undefined)[]): Promise<void>;
|
|
20614
|
+
export declare function ensurePackages(packages: (string | undefined)[]): Promise<void>;
|
|
20560
20615
|
//#endregion
|
|
20561
20616
|
//#region src/utils/interopDefault.d.ts
|
|
20562
20617
|
/**
|
|
@@ -20564,7 +20619,7 @@ declare function ensurePackages(packages: (string | undefined)[]): Promise<void>
|
|
|
20564
20619
|
* @param mod - The module
|
|
20565
20620
|
* @returns The default export
|
|
20566
20621
|
*/
|
|
20567
|
-
declare function interopDefault<T>(mod: Awaitable<T>): Promise<InteropModuleDefault<T>>;
|
|
20622
|
+
export declare function interopDefault<T>(mod: Awaitable<T>): Promise<InteropModuleDefault<T>>;
|
|
20568
20623
|
//#endregion
|
|
20569
20624
|
//#region src/utils/resolveSubOptions.d.ts
|
|
20570
20625
|
/**
|
|
@@ -20577,34 +20632,34 @@ declare function interopDefault<T>(mod: Awaitable<T>): Promise<InteropModuleDefa
|
|
|
20577
20632
|
* @param key - Sub-option key to resolve.
|
|
20578
20633
|
* @returns Normalized sub-options object.
|
|
20579
20634
|
*/
|
|
20580
|
-
declare function resolveSubOptions<T extends Record<string, any>, K extends keyof T>(options: T, key: K): Partial<ResolvedOptions<T[K]>>;
|
|
20635
|
+
export declare function resolveSubOptions<T extends Record<string, any>, K extends keyof T>(options: T, key: K): Partial<ResolvedOptions<T[K]>>;
|
|
20581
20636
|
//#endregion
|
|
20582
20637
|
//#region src/utils/isInGitHooksOrRunBySpecifyPackages.d.ts
|
|
20583
20638
|
/**
|
|
20584
20639
|
* Detect whether current execution is triggered by git hook tooling.
|
|
20585
20640
|
*/
|
|
20586
|
-
declare function isInGitHooksOrRunBySpecifyPackages(): boolean;
|
|
20641
|
+
export declare function isInGitHooksOrRunBySpecifyPackages(): boolean;
|
|
20587
20642
|
//#endregion
|
|
20588
20643
|
//#region src/constants/perfectionist.d.ts
|
|
20589
20644
|
/**
|
|
20590
20645
|
* Shared constants about eslint-plugin-perfectionist
|
|
20591
20646
|
*
|
|
20592
20647
|
*/
|
|
20593
|
-
declare const PERFECTIONIST: Readonly<{
|
|
20648
|
+
export declare const PERFECTIONIST: Readonly<{
|
|
20594
20649
|
partialRuleOptions: {
|
|
20595
|
-
readonly newlinesBetween:
|
|
20650
|
+
readonly newlinesBetween: "ignore";
|
|
20596
20651
|
readonly partitionByComment: string[];
|
|
20597
20652
|
};
|
|
20598
20653
|
pluginSettings: {
|
|
20599
20654
|
readonly fallbackSort: {
|
|
20600
|
-
readonly order:
|
|
20601
|
-
readonly type:
|
|
20655
|
+
readonly order: "asc";
|
|
20656
|
+
readonly type: "alphabetical";
|
|
20602
20657
|
};
|
|
20603
20658
|
readonly ignoreCase: true;
|
|
20604
|
-
readonly order:
|
|
20659
|
+
readonly order: "asc";
|
|
20605
20660
|
readonly partitionByNewLine: false;
|
|
20606
|
-
readonly specialCharacters:
|
|
20607
|
-
readonly type:
|
|
20661
|
+
readonly specialCharacters: "keep";
|
|
20662
|
+
readonly type: "alphabetical";
|
|
20608
20663
|
};
|
|
20609
20664
|
sortClassesGroups: (string | NonEmptyArray<string>)[];
|
|
20610
20665
|
sortExportAttributesGroups: string[];
|
|
@@ -20618,4 +20673,4 @@ declare const PERFECTIONIST: Readonly<{
|
|
|
20618
20673
|
sortObjectsGroups: string[];
|
|
20619
20674
|
}>;
|
|
20620
20675
|
//#endregion
|
|
20621
|
-
export {
|
|
20676
|
+
export { type ConfigNames, type RuleOptions, configsTypeScript, mergeProcessors, parserJsonc, parserPlain, parserToml, parserTypeScript, parserVue, parserYaml, pluginAntfu, pluginDeMorgan, pluginDepend, pluginESLintComments, pluginGitHubAction, pluginImportX, pluginJsdoc, pluginJsonc, pluginMarkdown, pluginNoOnlyTests, pluginNode, pluginNtnyq, pluginOxfmt, pluginPerfectionist, pluginPinia, pluginPrettier, pluginRegexp, pluginSvgo, pluginToml, pluginTypeScript, pluginUnicorn, pluginUnoCSS, pluginVitest, pluginVue, pluginYml, processorPassThrough, processorVueBlocks };
|
package/dist/index.mjs
CHANGED
|
@@ -154,6 +154,9 @@ const GLOB_EXCLUDE = [
|
|
|
154
154
|
"**/.npmrc",
|
|
155
155
|
"**/.yarnrc",
|
|
156
156
|
"**/.husky",
|
|
157
|
+
"**/test-results/**",
|
|
158
|
+
"**/playwright-report/**",
|
|
159
|
+
"**/.playwright-cli/**",
|
|
157
160
|
"**/src-tauri/gen",
|
|
158
161
|
"**/src-tauri/target",
|
|
159
162
|
"**/*.context",
|
|
@@ -1623,9 +1626,11 @@ const configNtnyq = (options = {}) => [{
|
|
|
1623
1626
|
plugins: { ntnyq: pluginNtnyq },
|
|
1624
1627
|
rules: {
|
|
1625
1628
|
"ntnyq/no-duplicate-exports": "error",
|
|
1629
|
+
"ntnyq/no-explicit-void-return-type": "error",
|
|
1626
1630
|
"ntnyq/prefer-newline-after-file-header": "error",
|
|
1627
1631
|
"ntnyq/prefer-object-method-syntax": ["error", {
|
|
1628
1632
|
allowArrowFunctions: "singleLineOnly",
|
|
1633
|
+
avoidQuotes: true,
|
|
1629
1634
|
fix: true
|
|
1630
1635
|
}],
|
|
1631
1636
|
...options.overrides
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ntnyq/eslint-config",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "7.0.0-beta.
|
|
4
|
+
"version": "7.0.0-beta.20",
|
|
5
5
|
"description": "An opinionated ESLint config preset of ntnyq",
|
|
6
6
|
"keywords": [
|
|
7
7
|
"eslint",
|
|
@@ -39,13 +39,13 @@
|
|
|
39
39
|
"tag": "next"
|
|
40
40
|
},
|
|
41
41
|
"peerDependencies": {
|
|
42
|
-
"@html-eslint/eslint-plugin": "^0.
|
|
43
|
-
"@html-eslint/parser": "^0.
|
|
42
|
+
"@html-eslint/eslint-plugin": "^0.65.0",
|
|
43
|
+
"@html-eslint/parser": "^0.65.0",
|
|
44
44
|
"astro-eslint-parser": "^3.1.0",
|
|
45
45
|
"eslint": "^10.4.0",
|
|
46
46
|
"eslint-plugin-astro": "^3.1.0",
|
|
47
47
|
"eslint-plugin-eslint-plugin": "^7.6.2",
|
|
48
|
-
"eslint-plugin-pnpm": "^1.
|
|
48
|
+
"eslint-plugin-pnpm": "^1.9.1",
|
|
49
49
|
"eslint-plugin-svelte": "^3.23.0",
|
|
50
50
|
"eslint-plugin-unused-imports": "^4.4.1",
|
|
51
51
|
"svelte": "^5.56.10",
|
|
@@ -84,13 +84,13 @@
|
|
|
84
84
|
}
|
|
85
85
|
},
|
|
86
86
|
"dependencies": {
|
|
87
|
-
"@antfu/install-pkg": "^2.0
|
|
88
|
-
"@clack/prompts": "^1.
|
|
89
|
-
"@eslint-community/eslint-plugin-eslint-comments": "^4.
|
|
87
|
+
"@antfu/install-pkg": "^2.1.0",
|
|
88
|
+
"@clack/prompts": "^1.8.1",
|
|
89
|
+
"@eslint-community/eslint-plugin-eslint-comments": "^4.8.1",
|
|
90
90
|
"@eslint/js": "^10.0.1",
|
|
91
91
|
"@eslint/markdown": "^8.0.3",
|
|
92
92
|
"@ntnyq/utils": "^0.22.0",
|
|
93
|
-
"@unocss/eslint-plugin": "^66.
|
|
93
|
+
"@unocss/eslint-plugin": "^66.10.4",
|
|
94
94
|
"@vitest/eslint-plugin": "^1.6.27",
|
|
95
95
|
"eslint-config-flat-gitignore": "^2.4.0",
|
|
96
96
|
"eslint-flat-config-utils": "^3.2.0",
|
|
@@ -103,50 +103,50 @@
|
|
|
103
103
|
"eslint-plugin-depend": "^1.5.0",
|
|
104
104
|
"eslint-plugin-github-action": "^0.4.0",
|
|
105
105
|
"eslint-plugin-import-x": "^4.17.1",
|
|
106
|
-
"eslint-plugin-jsdoc": "^64.
|
|
106
|
+
"eslint-plugin-jsdoc": "^64.5.0",
|
|
107
107
|
"eslint-plugin-jsonc": "^3.4.2",
|
|
108
108
|
"eslint-plugin-n": "^18.3.0",
|
|
109
109
|
"eslint-plugin-no-only-tests": "^3.4.0",
|
|
110
|
-
"eslint-plugin-ntnyq": "^0.
|
|
111
|
-
"eslint-plugin-oxfmt": "^0.
|
|
112
|
-
"eslint-plugin-perfectionist": "^5.11.
|
|
110
|
+
"eslint-plugin-ntnyq": "^0.17.0",
|
|
111
|
+
"eslint-plugin-oxfmt": "^0.24.0",
|
|
112
|
+
"eslint-plugin-perfectionist": "^5.11.1",
|
|
113
113
|
"eslint-plugin-pinia": "^0.4.2",
|
|
114
114
|
"eslint-plugin-prettier": "^5.5.6",
|
|
115
|
-
"eslint-plugin-regexp": "^3.
|
|
115
|
+
"eslint-plugin-regexp": "^3.3.0",
|
|
116
116
|
"eslint-plugin-svgo": "^0.14.0",
|
|
117
117
|
"eslint-plugin-toml": "^1.5.0",
|
|
118
118
|
"eslint-plugin-unicorn": "^74.0.0",
|
|
119
|
-
"eslint-plugin-vue": "^10.
|
|
119
|
+
"eslint-plugin-vue": "^10.11.0",
|
|
120
120
|
"eslint-plugin-yml": "^3.8.1",
|
|
121
121
|
"eslint-processor-vue-blocks": "^2.0.0",
|
|
122
|
-
"globals": "^17.
|
|
122
|
+
"globals": "^17.12.0",
|
|
123
123
|
"jsonc-eslint-parser": "^3.3.0",
|
|
124
124
|
"local-pkg": "^1.2.1",
|
|
125
125
|
"toml-eslint-parser": "^1.0.3",
|
|
126
|
-
"typescript-eslint": "^8.
|
|
126
|
+
"typescript-eslint": "^8.70.0",
|
|
127
127
|
"vue-eslint-parser": "^10.4.1",
|
|
128
128
|
"yaml-eslint-parser": "^2.1.0"
|
|
129
129
|
},
|
|
130
130
|
"devDependencies": {
|
|
131
|
-
"@types/node": "^26.
|
|
132
|
-
"@typescript-eslint/types": "^8.
|
|
131
|
+
"@types/node": "^26.6.1",
|
|
132
|
+
"@typescript-eslint/types": "^8.70.0",
|
|
133
133
|
"@typescript/native-preview": "npm:typescript@^7.0.2",
|
|
134
|
-
"bumpp": "^12.
|
|
134
|
+
"bumpp": "^12.3.0",
|
|
135
135
|
"consola": "^3.4.2",
|
|
136
|
-
"eslint": "^10.
|
|
136
|
+
"eslint": "^10.10.0",
|
|
137
137
|
"eslint-typegen": "^2.3.1",
|
|
138
138
|
"husky": "^9.1.7",
|
|
139
139
|
"jiti": "^2.7.0",
|
|
140
140
|
"nano-staged": "^1.0.2",
|
|
141
141
|
"npm-run-all2": "^9.0.3",
|
|
142
|
-
"oxfmt": "^0.
|
|
142
|
+
"oxfmt": "^0.68.0",
|
|
143
143
|
"prettier": "^3.9.6",
|
|
144
144
|
"tinyglobby": "^0.2.17",
|
|
145
|
-
"tsdown": "^0.
|
|
145
|
+
"tsdown": "^0.23.0",
|
|
146
146
|
"tsx": "^4.23.13",
|
|
147
147
|
"typescript": "npm:@typescript/typescript6@^6.0.2",
|
|
148
148
|
"uncase": "^0.3.0",
|
|
149
|
-
"vitest": "^
|
|
149
|
+
"vitest": "^5.0.1"
|
|
150
150
|
},
|
|
151
151
|
"engines": {
|
|
152
152
|
"node": "^22.23.0 || >=24.15.0"
|