web: restricted all eslints to local checks only and blocked them from cache analysis
This commit is contained in:
@ -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",
|
||||
|
@ -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);
|
||||
|
@ -13,6 +13,8 @@ export default [
|
||||
{
|
||||
ignores: [
|
||||
"dist/",
|
||||
".wireit/",
|
||||
"packages/",
|
||||
// don't ever lint node_modules
|
||||
"node_modules/",
|
||||
".storybook/*",
|
||||
|
@ -13,6 +13,8 @@ export default [
|
||||
{
|
||||
ignores: [
|
||||
"dist/",
|
||||
".wireit/",
|
||||
"packages/",
|
||||
// don't ever lint node_modules
|
||||
"node_modules/",
|
||||
".storybook/*",
|
||||
|
Reference in New Issue
Block a user