cli: only try to lint source files with --check

Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
This commit is contained in:
Patrik Oldsberg
2023-02-23 13:14:04 +01:00
parent f16d9f31cd
commit 867f4752ca
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
@@ -100,7 +100,7 @@ export async function createConfig(
}),
new ESLintPlugin({
context: paths.targetPath,
files: ['**', '!**/__tests__/**', '!**/?(*.)(spec|test).*'],
files: ['**/*.(ts|tsx|mts|cts|js|jsx|mjs|cjs)'],
}),
);
}
@@ -325,7 +325,7 @@ export async function createBackendConfig(
typescript: { configFile: paths.targetTsConfig },
}),
new ESLintPlugin({
files: ['**', '!**/__tests__/**', '!**/?(*.)(spec|test).*'],
files: ['**/*.(ts|tsx|mts|cts|js|jsx|mjs|cjs)'],
}),
]
: []),