web: restricted all eslints to local checks only and blocked them from cache analysis

This commit is contained in:
Ken Sternberg
2024-08-09 09:56:55 -07:00
parent 0cc0fdaae3
commit 9b40ecb023
4 changed files with 11 additions and 0 deletions

View File

@ -138,6 +138,8 @@
"lint": "wireit",
"lint:lockfile": "wireit",
"lint:package": "wireit",
"lint:precommit": "wireit",
"lint:nightmare": "wireit",
"lit-analyse": "wireit",
"postinstall": "bash scripts/patch-spotlight.sh",
"precommit": "wireit",

View File

@ -48,6 +48,11 @@ const eslint = new ESLint({
warnIgnored: false,
});
if (files.length < 1) {
console.log("eslint: change set contains no lintable files");
process.exit(0);
}
const results = await eslint.lintFiles(files);
const formatter = await eslint.loadFormatter("stylish");
const resultText = formatter.format(results);

View File

@ -13,6 +13,8 @@ export default [
{
ignores: [
"dist/",
".wireit/",
"packages/",
// don't ever lint node_modules
"node_modules/",
".storybook/*",

View File

@ -13,6 +13,8 @@ export default [
{
ignores: [
"dist/",
".wireit/",
"packages/",
// don't ever lint node_modules
"node_modules/",
".storybook/*",