This repository was archived by the owner on Mar 7, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +14
-2
lines changed Expand file tree Collapse file tree 2 files changed +14
-2
lines changed Original file line number Diff line number Diff line change 1
1
import type { ESLint , Linter } from 'eslint' ;
2
2
import type { Rules } from '../rules' ;
3
+ import type { LiteralUnion } from '../utility-types' ;
3
4
import type { LanguageOptions } from './language-options' ;
4
5
import type { LinterOptions } from './linter-options' ;
5
6
@@ -56,3 +57,14 @@ export interface FlatESLintConfig {
56
57
*/
57
58
rules ?: Rules ;
58
59
}
60
+
61
+ /**
62
+ * Predefined configurations.
63
+ *
64
+ * @see [Using predefined configurations](https://eslint.org/docs/latest/user-guide/configuring/configuration-files-new#using-predefined-configurations)
65
+ */
66
+ export type PredefinedConfig = LiteralUnion <
67
+ 'eslint:recommended' | 'eslint:all'
68
+ > ;
69
+
70
+ export type FlatESLintConfigs = Array < FlatESLintConfig | PredefinedConfig > ;
Original file line number Diff line number Diff line change 1
1
import type { ESLintConfig } from './config' ;
2
- import type { FlatESLintConfig } from './flat-config' ;
2
+ import type { FlatESLintConfigs } from './flat-config' ;
3
3
4
4
/**
5
5
* Define an ESLint config.
@@ -17,4 +17,4 @@ export function defineConfig(config: ESLintConfig): ESLintConfig;
17
17
* @param config Flat ESLint config.
18
18
* @returns Flat ESLint config.
19
19
*/
20
- export function defineConfig ( config : FlatESLintConfig [ ] ) : FlatESLintConfig [ ] ;
20
+ export function defineConfig ( config : FlatESLintConfigs [ ] ) : FlatESLintConfigs [ ] ;
You can’t perform that action at this time.
0 commit comments