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": "wireit",
|
||||||
"lint:lockfile": "wireit",
|
"lint:lockfile": "wireit",
|
||||||
"lint:package": "wireit",
|
"lint:package": "wireit",
|
||||||
|
"lint:precommit": "wireit",
|
||||||
|
"lint:nightmare": "wireit",
|
||||||
"lit-analyse": "wireit",
|
"lit-analyse": "wireit",
|
||||||
"postinstall": "bash scripts/patch-spotlight.sh",
|
"postinstall": "bash scripts/patch-spotlight.sh",
|
||||||
"precommit": "wireit",
|
"precommit": "wireit",
|
||||||
|
@ -48,6 +48,11 @@ const eslint = new ESLint({
|
|||||||
warnIgnored: false,
|
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 results = await eslint.lintFiles(files);
|
||||||
const formatter = await eslint.loadFormatter("stylish");
|
const formatter = await eslint.loadFormatter("stylish");
|
||||||
const resultText = formatter.format(results);
|
const resultText = formatter.format(results);
|
||||||
|
@ -13,6 +13,8 @@ export default [
|
|||||||
{
|
{
|
||||||
ignores: [
|
ignores: [
|
||||||
"dist/",
|
"dist/",
|
||||||
|
".wireit/",
|
||||||
|
"packages/",
|
||||||
// don't ever lint node_modules
|
// don't ever lint node_modules
|
||||||
"node_modules/",
|
"node_modules/",
|
||||||
".storybook/*",
|
".storybook/*",
|
||||||
|
@ -13,6 +13,8 @@ export default [
|
|||||||
{
|
{
|
||||||
ignores: [
|
ignores: [
|
||||||
"dist/",
|
"dist/",
|
||||||
|
".wireit/",
|
||||||
|
"packages/",
|
||||||
// don't ever lint node_modules
|
// don't ever lint node_modules
|
||||||
"node_modules/",
|
"node_modules/",
|
||||||
".storybook/*",
|
".storybook/*",
|
||||||
|
Reference in New Issue
Block a user