From 95fbf92cc58eb1e6edfae30a98d63d93c0e12e77 Mon Sep 17 00:00:00 2001 From: Brad Decker Date: Wed, 31 Mar 2021 10:19:03 -0500 Subject: [PATCH] cache lint results for faster repeat execution (#10773) --- .gitignore | 1 + package.json | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index 5e46dd1e0..d2f051b18 100644 --- a/.gitignore +++ b/.gitignore @@ -8,6 +8,7 @@ audit.json app/bower_components test/bower_components package +.eslintcache # IDEs .idea diff --git a/package.json b/package.json index d8bfe0502..8e2a7cdfa 100644 --- a/package.json +++ b/package.json @@ -34,8 +34,8 @@ "test:coverage:path": "nyc --check-coverage yarn test:unit:path", "ganache:start": "./development/run-ganache.sh", "sentry:publish": "node ./development/sentry-publish.js", - "lint": "prettier --check ./**/*.json && eslint . --ext js && yarn lint:styles", - "lint:fix": "prettier --write ./**/*.json && eslint . --ext js --fix", + "lint": "prettier --check ./**/*.json && eslint . --ext js --cache && yarn lint:styles", + "lint:fix": "prettier --write ./**/*.json && eslint . --ext js --cache --fix", "lint:changed": "{ git ls-files --others --exclude-standard ; git diff-index --name-only --diff-filter=d HEAD ; } | grep --regexp='[.]js$' | tr '\\n' '\\0' | xargs -0 eslint", "lint:changed:fix": "{ git ls-files --others --exclude-standard ; git diff-index --name-only --diff-filter=d HEAD ; } | grep --regexp='[.]js$' | tr '\\n' '\\0' | xargs -0 eslint --fix", "lint:shellcheck": "./development/shellcheck.sh",