[eslint-plugin] exclude *.config.*ts from linting (#31050)
so we don't have errors in editors when opening vitest configs
This commit is contained in:
Родитель
941e0d032a
Коммит
e1e7eb4b9f
|
@ -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: {
|
||||
|
|
Загрузка…
Ссылка в новой задаче