Skip to content

Commit 55486f1

Browse files
authored
fix(eslint-plugin): strictly type config keys (#7780)
* fix(eslint-plugin): strictly type config keys * fix: remove union for `recommended`
1 parent 5760f70 commit 55486f1

File tree

1 file changed

+4
-4
lines changed
  • packages/eslint-plugin-query/src

1 file changed

+4
-4
lines changed

packages/eslint-plugin-query/src/index.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@ type RuleKey = keyof typeof rules
66

77
interface Plugin extends Omit<ESLint.Plugin, 'rules'> {
88
rules: Record<RuleKey, RuleModule<any, any, any>>
9-
configs: Record<
10-
'recommended' | 'flat/recommended',
11-
ESLint.ConfigData | Linter.FlatConfig | Array<Linter.FlatConfig>
12-
>
9+
configs: {
10+
recommended: ESLint.ConfigData
11+
'flat/recommended': Array<Linter.FlatConfig>
12+
}
1313
}
1414

1515
const plugin: Plugin = {

0 commit comments

Comments
 (0)