@@ -51,7 +51,7 @@ export type Rules = WrapRuleConfig<
51
51
EslintCommentsRules &
52
52
// TODO: TOML rules
53
53
{
54
- "test/no-only-tests" : RuleConfig < [ ] >
54
+ "test/no-only-tests" : RuleConfig < [ ] > ;
55
55
}
56
56
>
57
57
> ;
@@ -60,15 +60,15 @@ export type FlatConfigItem = Omit<FlatESLintConfigItem<Rules, false>, "plugins">
60
60
/**
61
61
* Custom name of each config item
62
62
*/
63
- name ?: string
63
+ name ?: string ;
64
64
65
65
// Relax plugins type limitation, as most of the plugins did not have correct type info yet.
66
66
/**
67
67
* An object containing a name-value mapping of plugin names to plugin objects. When `files` is specified, these plugins are only available to the matching files.
68
68
*
69
69
* @see [Using plugins in your configuration](https://eslint.org/docs/latest/user-guide/configuring/configuration-files-new#using-plugins-in-your-configuration)
70
70
*/
71
- plugins ?: Record < string , any >
71
+ plugins ?: Record < string , any > ;
72
72
} ;
73
73
74
74
export type UserConfigItem = FlatConfigItem | Linter . FlatConfig ;
@@ -77,7 +77,7 @@ export interface OptionsFiles {
77
77
/**
78
78
* Override the `files` option to provide custom globs.
79
79
*/
80
- files ?: string [ ]
80
+ files ?: string [ ] ;
81
81
}
82
82
83
83
export interface OptionsVue extends OptionsOverrides {
@@ -87,14 +87,14 @@ export interface OptionsVue extends OptionsOverrides {
87
87
* @see https://github.com/kirklin/eslint-processor-vue-blocks
88
88
* @default true
89
89
*/
90
- sfcBlocks ?: boolean | VueBlocksOptions
90
+ sfcBlocks ?: boolean | VueBlocksOptions ;
91
91
92
92
/**
93
93
* Vue version. Apply different rules set from `eslint-plugin-vue`.
94
94
*
95
95
* @default 3
96
96
*/
97
- vueVersion ?: 2 | 3
97
+ vueVersion ?: 2 | 3 ;
98
98
}
99
99
100
100
export type OptionsTypescript =
@@ -107,14 +107,14 @@ export interface OptionsFormatters {
107
107
*
108
108
* Currently only support Prettier.
109
109
*/
110
- css ?: "prettier" | boolean
110
+ css ?: "prettier" | boolean ;
111
111
112
112
/**
113
113
* Enable formatting support for HTML.
114
114
*
115
115
* Currently only support Prettier.
116
116
*/
117
- html ?: "prettier" | boolean
117
+ html ?: "prettier" | boolean ;
118
118
119
119
/**
120
120
* Enable formatting support for Markdown.
@@ -123,26 +123,26 @@ export interface OptionsFormatters {
123
123
*
124
124
* When set to `true`, it will use Prettier.
125
125
*/
126
- markdown ?: "prettier" | "dprint" | boolean
126
+ markdown ?: "prettier" | "dprint" | boolean ;
127
127
128
128
/**
129
129
* Enable formatting support for GraphQL.
130
130
*/
131
- graphql ?: "prettier" | boolean
131
+ graphql ?: "prettier" | boolean ;
132
132
133
133
/**
134
134
* Custom options for Prettier.
135
135
*
136
136
* By default it's controlled by our own config.
137
137
*/
138
- prettierOptions ?: VendoredPrettierOptions
138
+ prettierOptions ?: VendoredPrettierOptions ;
139
139
140
140
/**
141
141
* Custom options for dprint.
142
142
*
143
143
* By default it's controlled by our own config.
144
144
*/
145
- dprintOptions ?: boolean
145
+ dprintOptions ?: boolean ;
146
146
}
147
147
148
148
export interface OptionsComponentExts {
@@ -152,60 +152,60 @@ export interface OptionsComponentExts {
152
152
* @example ['vue']
153
153
* @default []
154
154
*/
155
- componentExts ?: string [ ]
155
+ componentExts ?: string [ ] ;
156
156
}
157
157
158
158
export interface OptionsTypeScriptParserOptions {
159
159
/**
160
160
* Additional parser options for TypeScript.
161
161
*/
162
- parserOptions ?: Partial < ParserOptions >
162
+ parserOptions ?: Partial < ParserOptions > ;
163
163
164
164
/**
165
165
* Glob patterns for files that should be type aware.
166
166
* @default ['**\/*.{ts,tsx}']
167
167
*/
168
- filesTypeAware ?: string [ ]
168
+ filesTypeAware ?: string [ ] ;
169
169
}
170
170
171
171
export interface OptionsTypeScriptWithTypes {
172
172
/**
173
173
* When this options is provided, type aware rules will be enabled.
174
174
* @see https://typescript-eslint.io/linting/typed-linting/
175
175
*/
176
- tsconfigPath ?: string | string [ ]
176
+ tsconfigPath ?: string | string [ ] ;
177
177
}
178
178
179
179
export interface OptionsHasTypeScript {
180
- typescript ?: boolean
180
+ typescript ?: boolean ;
181
181
}
182
182
183
183
export interface OptionsStylistic {
184
- stylistic ?: boolean | StylisticConfig
184
+ stylistic ?: boolean | StylisticConfig ;
185
185
}
186
186
187
187
export interface StylisticConfig extends Pick < StylisticCustomizeOptions , "indent" | "quotes" | "jsx" | "semi" > {
188
188
}
189
189
190
190
export interface OptionsOverrides {
191
- overrides ?: FlatConfigItem [ "rules" ]
191
+ overrides ?: FlatConfigItem [ "rules" ] ;
192
192
}
193
193
194
194
export interface OptionsIsInEditor {
195
- isInEditor ?: boolean
195
+ isInEditor ?: boolean ;
196
196
}
197
197
198
198
export interface OptionsUnoCSS extends OptionsOverrides {
199
199
/**
200
200
* Enable attributify support.
201
201
* @default true
202
202
*/
203
- attributify ?: boolean
203
+ attributify ?: boolean ;
204
204
/**
205
205
* Enable strict mode by throwing errors about blocklisted classes.
206
206
* @default false
207
207
*/
208
- strict ?: boolean
208
+ strict ?: boolean ;
209
209
}
210
210
211
211
export interface OptionsConfig extends OptionsComponentExts {
@@ -217,12 +217,12 @@ export interface OptionsConfig extends OptionsComponentExts {
217
217
* @see https://github.com/kirklin/eslint-config-flat-gitignore
218
218
* @default true
219
219
*/
220
- gitignore ?: boolean | FlatGitignoreOptions
220
+ gitignore ?: boolean | FlatGitignoreOptions ;
221
221
222
222
/**
223
223
* Core rules. Can't be disabled.
224
224
*/
225
- javascript ?: OptionsOverrides
225
+ javascript ?: OptionsOverrides ;
226
226
227
227
/**
228
228
* Enable TypeScript support.
@@ -231,7 +231,7 @@ export interface OptionsConfig extends OptionsComponentExts {
231
231
*
232
232
* @default auto-detect based on the dependencies
233
233
*/
234
- typescript ?: boolean | OptionsTypescript
234
+ typescript ?: boolean | OptionsTypescript ;
235
235
236
236
/**
237
237
* Enable JSX related rules.
@@ -240,42 +240,42 @@ export interface OptionsConfig extends OptionsComponentExts {
240
240
*
241
241
* @default true
242
242
*/
243
- jsx ?: boolean
243
+ jsx ?: boolean ;
244
244
245
245
/**
246
246
* Enable test support.
247
247
*
248
248
* @default true
249
249
*/
250
- test ?: boolean | OptionsOverrides
250
+ test ?: boolean | OptionsOverrides ;
251
251
252
252
/**
253
253
* Enable Vue support.
254
254
*
255
255
* @default auto-detect based on the dependencies
256
256
*/
257
- vue ?: boolean | OptionsVue
257
+ vue ?: boolean | OptionsVue ;
258
258
259
259
/**
260
260
* Enable JSONC support.
261
261
*
262
262
* @default true
263
263
*/
264
- jsonc ?: boolean | OptionsOverrides
264
+ jsonc ?: boolean | OptionsOverrides ;
265
265
266
266
/**
267
267
* Enable YAML support.
268
268
*
269
269
* @default true
270
270
*/
271
- yaml ?: boolean | OptionsOverrides
271
+ yaml ?: boolean | OptionsOverrides ;
272
272
273
273
/**
274
274
* Enable TOML support.
275
275
*
276
276
* @default true
277
277
*/
278
- toml ?: boolean | OptionsOverrides
278
+ toml ?: boolean | OptionsOverrides ;
279
279
280
280
/**
281
281
* Enable linting for **code snippets** in Markdown.
@@ -284,14 +284,14 @@ export interface OptionsConfig extends OptionsComponentExts {
284
284
*
285
285
* @default true
286
286
*/
287
- markdown ?: boolean | OptionsOverrides
287
+ markdown ?: boolean | OptionsOverrides ;
288
288
289
289
/**
290
290
* Enable stylistic rules.
291
291
*
292
292
* @default true
293
293
*/
294
- stylistic ?: boolean | StylisticConfig
294
+ stylistic ?: boolean | StylisticConfig ;
295
295
296
296
/**
297
297
* Enable react rules.
@@ -303,7 +303,7 @@ export interface OptionsConfig extends OptionsComponentExts {
303
303
*
304
304
* @default false
305
305
*/
306
- react ?: boolean | OptionsOverrides
306
+ react ?: boolean | OptionsOverrides ;
307
307
308
308
/**
309
309
* Enable svelte rules.
@@ -313,7 +313,7 @@ export interface OptionsConfig extends OptionsComponentExts {
313
313
*
314
314
* @default false
315
315
*/
316
- svelte ?: boolean
316
+ svelte ?: boolean ;
317
317
318
318
/**
319
319
* Enable unocss rules.
@@ -323,7 +323,7 @@ export interface OptionsConfig extends OptionsComponentExts {
323
323
*
324
324
* @default false
325
325
*/
326
- unocss ?: boolean | OptionsUnoCSS
326
+ unocss ?: boolean | OptionsUnoCSS ;
327
327
328
328
/**
329
329
* Use external formatters to format files.
@@ -335,30 +335,30 @@ export interface OptionsConfig extends OptionsComponentExts {
335
335
*
336
336
* @default false
337
337
*/
338
- formatters ?: boolean | OptionsFormatters
338
+ formatters ?: boolean | OptionsFormatters ;
339
339
340
340
/**
341
341
* Control to disable some rules in editors.
342
342
* @default auto-detect based on the process.env
343
343
*/
344
- isInEditor ?: boolean
344
+ isInEditor ?: boolean ;
345
345
346
346
/**
347
347
* Provide overrides for rules for each integration.
348
348
*
349
349
* @deprecated use `overrides` option in each integration key instead
350
350
*/
351
351
overrides ?: {
352
- stylistic ?: FlatConfigItem [ "rules" ]
353
- javascript ?: FlatConfigItem [ "rules" ]
354
- typescript ?: FlatConfigItem [ "rules" ]
355
- test ?: FlatConfigItem [ "rules" ]
356
- vue ?: FlatConfigItem [ "rules" ]
357
- jsonc ?: FlatConfigItem [ "rules" ]
358
- markdown ?: FlatConfigItem [ "rules" ]
359
- yaml ?: FlatConfigItem [ "rules" ]
360
- toml ?: FlatConfigItem [ "rules" ]
361
- react ?: FlatConfigItem [ "rules" ]
362
- svelte ?: FlatConfigItem [ "rules" ]
363
- }
352
+ stylistic ?: FlatConfigItem [ "rules" ] ;
353
+ javascript ?: FlatConfigItem [ "rules" ] ;
354
+ typescript ?: FlatConfigItem [ "rules" ] ;
355
+ test ?: FlatConfigItem [ "rules" ] ;
356
+ vue ?: FlatConfigItem [ "rules" ] ;
357
+ jsonc ?: FlatConfigItem [ "rules" ] ;
358
+ markdown ?: FlatConfigItem [ "rules" ] ;
359
+ yaml ?: FlatConfigItem [ "rules" ] ;
360
+ toml ?: FlatConfigItem [ "rules" ] ;
361
+ react ?: FlatConfigItem [ "rules" ] ;
362
+ svelte ?: FlatConfigItem [ "rules" ] ;
363
+ } ;
364
364
}
0 commit comments