Skip to content

Commit

Permalink
[eslint-plugin] exclude *.config.*ts from linting (#31050)
Browse files Browse the repository at this point in the history
so we don't have errors in editors when opening vitest configs
  • Loading branch information
jeremymeng authored Sep 11, 2024
1 parent 941e0d0 commit e1e7eb4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions common/tools/eslint-plugin-azure-sdk/src/configs/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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: {
Expand Down Expand Up @@ -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: {
Expand Down

0 comments on commit e1e7eb4

Please sign in to comment.