Skip to content

Commit 404c2fa

Browse files
fix(eslint-plugin): type config names (#7766)
* fix(eslint-plugin): type configs * ci: apply automated fixes --------- Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
1 parent c3dffbd commit 404c2fa

File tree

1 file changed

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

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ type RuleKey = keyof typeof rules
77
interface Plugin extends Omit<ESLint.Plugin, 'rules'> {
88
rules: Record<RuleKey, RuleModule<any, any, any>>
99
configs: Record<
10-
string,
10+
'recommended' | 'flat/recommended',
1111
ESLint.ConfigData | Linter.FlatConfig | Array<Linter.FlatConfig>
1212
>
1313
}
@@ -16,7 +16,7 @@ const plugin: Plugin = {
1616
meta: {
1717
name: '@tanstack/eslint-plugin-query',
1818
},
19-
configs: {},
19+
configs: {} as Plugin['configs'],
2020
rules,
2121
}
2222

0 commit comments

Comments
 (0)