1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-10-22 11:22:43 +02:00

cache lint results for faster repeat execution (#10773)

This commit is contained in:
Brad Decker 2021-03-31 10:19:03 -05:00 committed by GitHub
parent 0040b66e5c
commit 95fbf92cc5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 2 deletions

1
.gitignore vendored
View File

@ -8,6 +8,7 @@ audit.json
app/bower_components
test/bower_components
package
.eslintcache
# IDEs
.idea

View File

@ -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",