From e1e7eb4b9ff2e9621bc3266b6377084ffdfaea56 Mon Sep 17 00:00:00 2001 From: Jeremy Meng Date: Wed, 11 Sep 2024 15:10:03 -0700 Subject: [PATCH] [eslint-plugin] exclude *.config.*ts from linting (#31050) so we don't have errors in editors when opening vitest configs --- common/tools/eslint-plugin-azure-sdk/src/configs/index.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/common/tools/eslint-plugin-azure-sdk/src/configs/index.ts b/common/tools/eslint-plugin-azure-sdk/src/configs/index.ts index 24caed8fdd6..7e81c547dc6 100644 --- a/common/tools/eslint-plugin-azure-sdk/src/configs/index.ts +++ b/common/tools/eslint-plugin-azure-sdk/src/configs/index.ts @@ -18,7 +18,7 @@ import rootConfig from "./azure-sdk-base"; function recommended(plugin: FlatConfig.Plugin, options: { typeChecked: boolean }) { return typescriptEslint.config( { - ignores: ["**/generated/**", "**/*.config.{js,cjs,mjs}"], + ignores: ["**/generated/**", "**/*.config.{js,cjs,mjs,ts,cts,mts}"], }, { languageOptions: { @@ -102,7 +102,7 @@ export default (plugin: FlatConfig.Plugin) => ({ "azure-sdk-base": rootConfig, internal: typescriptEslint.config( { - ignores: ["**/generated/**", "**/*.config.{js,cjs,mjs}"], + ignores: ["**/generated/**", "**/*.config.{js,cjs,mjs,ts,cts,mts}"], }, { languageOptions: {