Skip to content
This repository was archived by the owner on Mar 7, 2025. It is now read-only.

Commit 3d63df6

Browse files
authored
feat: add settings for flat config (#166)
1 parent bc27eb9 commit 3d63df6

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

src/flat-config/index.d.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,13 @@ export interface FlatESLintConfigItem {
5555
* @see [Configuring rules](https://eslint.org/docs/latest/user-guide/configuring/configuration-files-new#configuring-rules)
5656
*/
5757
rules?: Rules;
58+
59+
/**
60+
* An object containing name-value pairs of information that should be available to all rules.
61+
*
62+
* @see [Configuring shared settings](https://eslint.org/docs/latest/user-guide/configuring/configuration-files-new#configuring-shared-settings)
63+
*/
64+
settings?: Record<string, any>;
5865
}
5966

6067
/**

tests/define.test-d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ describe('define', () => {
4141
ignores: [],
4242
plugins: {},
4343
rules: {},
44+
settings: {},
4445
},
4546
]),
4647
).toEqualTypeOf<FlatESLintConfig[]>();

0 commit comments

Comments
 (0)