From 1dcbee4e2a2cf85d85eb717af352af3635cf1829 Mon Sep 17 00:00:00 2001 From: Fedor Indutny <79877362+indutny-signal@users.noreply.github.com> Date: Mon, 15 Mar 2021 14:44:12 -0700 Subject: [PATCH] Use eslint --cache CLI argument to speed up linting --- .gitignore | 1 + package.json | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index ae9ef166bf9a..762c7833fd80 100644 --- a/.gitignore +++ b/.gitignore @@ -14,6 +14,7 @@ release/ *.sublime* /sql/ /start.sh +.eslintcache # generated files js/components.js diff --git a/package.json b/package.json index 1488e0a1da2e..406ce173b848 100644 --- a/package.json +++ b/package.json @@ -31,7 +31,7 @@ "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-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-deps": "node ts/util/lint/linter.js", "lint-license-comments": "ts-node ts/util/lint/license_comments.ts",