From 19d6593f0021873f0c33a2e14d42d7e003873f9a Mon Sep 17 00:00:00 2001 From: Winston Liu Date: Sat, 5 Oct 2024 12:33:30 -0700 Subject: [PATCH] Check for correct type-aware config format --- src/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.ts b/src/index.ts index 2dc57ed..0ee32be 100644 --- a/src/index.ts +++ b/src/index.ts @@ -17,7 +17,7 @@ export default function createConfig({ }: ConfigOptions = {}): ConfigArray { const mayHaveJsxInSfc = supportedScriptLangs.jsx || supportedScriptLangs.tsx const needsTypeAwareLinting = configNamesToExtend.some(name => - name.endsWith('-type-checked'), + name.includes('TypeChecked') && name !== 'disableTypeChecked', ) // Type-aware linting is in conflict with JSX syntax in `.vue` files