Merge pull request #16562 from backstage/rugvip/check

cli: only try to lint source files with --check
This commit is contained in:
Patrik Oldsberg
2023-02-23 23:18:35 +01:00
committed by GitHub
2 changed files with 7 additions and 2 deletions
+5
View File
@@ -0,0 +1,5 @@
---
'@backstage/cli': patch
---
Updated the ESLint plugin configuration that is enabled through `yarn start --check` to only pick up valid source files.
+2 -2
View File
@@ -102,7 +102,7 @@ export async function createConfig(
}),
new ESLintPlugin({
context: paths.targetPath,
files: ['**', '!**/__tests__/**', '!**/?(*.)(spec|test).*'],
files: ['**/*.(ts|tsx|mts|cts|js|jsx|mjs|cjs)'],
}),
);
}
@@ -330,7 +330,7 @@ export async function createBackendConfig(
typescript: { configFile: paths.targetTsConfig },
}),
new ESLintPlugin({
files: ['**', '!**/__tests__/**', '!**/?(*.)(spec|test).*'],
files: ['**/*.(ts|tsx|mts|cts|js|jsx|mjs|cjs)'],
}),
]
: []),