From 55486f17622e3a642e0cc97a0f9ad876ef920326 Mon Sep 17 00:00:00 2001 From: Jeroen Claassens Date: Thu, 25 Jul 2024 17:54:57 +0200 Subject: [PATCH] fix(eslint-plugin): strictly type config keys (#7780) * fix(eslint-plugin): strictly type config keys * fix: remove union for `recommended` --- packages/eslint-plugin-query/src/index.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/eslint-plugin-query/src/index.ts b/packages/eslint-plugin-query/src/index.ts index 57e2db2901..595e44ea2d 100644 --- a/packages/eslint-plugin-query/src/index.ts +++ b/packages/eslint-plugin-query/src/index.ts @@ -6,10 +6,10 @@ type RuleKey = keyof typeof rules interface Plugin extends Omit { rules: Record> - configs: Record< - 'recommended' | 'flat/recommended', - ESLint.ConfigData | Linter.FlatConfig | Array - > + configs: { + recommended: ESLint.ConfigData + 'flat/recommended': Array + } } const plugin: Plugin = {