Skip to content

Commit

Permalink
feat: exports TS type (#149)
Browse files Browse the repository at this point in the history
  • Loading branch information
sxzz authored Oct 29, 2022
1 parent 57edded commit 2607f1e
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/config/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -113,3 +113,9 @@ export interface ESLintConfig {
*/
reportUnusedDisableDirectives?: boolean;
}

export * from './env';
export * from './extends';
export * from './overrides';
export * from './plugin';
export * from './settings';
3 changes: 3 additions & 0 deletions src/flat-config/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,3 +69,6 @@ export type PredefinedConfig = LiteralUnion<

export type FlatESLintConfig = FlatESLintConfigItem | PredefinedConfig;
export type FlatESLintConfigs = Array<FlatESLintConfig>;

export * from './language-options';
export * from './linter-options';
5 changes: 5 additions & 0 deletions src/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,3 +28,8 @@ export function defineConfig(config: FlatESLintConfig): FlatESLintConfig;
* @returns Flat ESLint config.
*/
export function defineConfig(config: FlatESLintConfigs): FlatESLintConfigs;

export * from './config';
export * from './flat-config';
export * from './parser-options';
export * from './rules';

0 comments on commit 2607f1e

Please sign in to comment.