From 227e59556c33c1aa36f87e8a9f10ffc4d29fc22c Mon Sep 17 00:00:00 2001 From: Darius Dzien Date: Fri, 8 Jul 2022 21:31:39 -0500 Subject: [PATCH] Build: Add caching to ESLint (#225) * Add caching to ESLint * Update gitignore * Fix typo * Remove newline * Address comment --- .gitignore | 1 + package.json | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 44185ca8..e75d1ac1 100644 --- a/.gitignore +++ b/.gitignore @@ -2,3 +2,4 @@ node_modules/ build/coverage .nyc_output/ npm-debug.log +.eslintcache diff --git a/package.json b/package.json index 062e81a8..39142ef4 100644 --- a/package.json +++ b/package.json @@ -7,7 +7,7 @@ "test": "npm run lint && npm run unit-test", "lint": "npm-run-all --continue-on-error --aggregate-output --parallel lint:*", "lint:docs": "markdownlint \"**/*.md\"", - "lint:js": "eslint ./ --report-unused-disable-directives", + "lint:js": "eslint --cache --report-unused-disable-directives .", "unit-test": "nyc mocha tests/**/*.js", "report-coverage-html": "nyc report --reporter=html --report-dir build/coverage", "preversion": "npm test",