Use eslint --cache CLI argument to speed up linting

This commit is contained in:
Fedor Indutny 2021-03-15 14:44:12 -07:00 committed by Josh Perez
parent 3a94d2c75e
commit 1dcbee4e2a
2 changed files with 2 additions and 1 deletions

1
.gitignore vendored
View file

@ -14,6 +14,7 @@ release/
*.sublime* *.sublime*
/sql/ /sql/
/start.sh /start.sh
.eslintcache
# generated files # generated files
js/components.js js/components.js

View file

@ -31,7 +31,7 @@
"test-electron": "yarn grunt test", "test-electron": "yarn grunt test",
"test-node": "electron-mocha --file test/setup-test-node.js --recursive test/app test/modules ts/test-node ts/test-both", "test-node": "electron-mocha --file test/setup-test-node.js --recursive test/app test/modules ts/test-node ts/test-both",
"test-node-coverage": "nyc --reporter=lcov --reporter=text mocha --recursive test/app test/modules ts/test-node ts/test-both", "test-node-coverage": "nyc --reporter=lcov --reporter=text mocha --recursive test/app test/modules ts/test-node ts/test-both",
"eslint": "eslint .", "eslint": "eslint --cache .",
"lint": "yarn format --list-different && yarn eslint", "lint": "yarn format --list-different && yarn eslint",
"lint-deps": "node ts/util/lint/linter.js", "lint-deps": "node ts/util/lint/linter.js",
"lint-license-comments": "ts-node ts/util/lint/license_comments.ts", "lint-license-comments": "ts-node ts/util/lint/license_comments.ts",