From 17bcc3c9db736e427a0c2566d011dd56a5aec57d Mon Sep 17 00:00:00 2001 From: Tobias Koppers Date: Fri, 11 May 2018 16:06:20 +0200 Subject: [PATCH] enable eslint caching --- .gitignore | 1 + package.json | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index f7a05a2b8..32814bb49 100644 --- a/.gitignore +++ b/.gitignore @@ -10,4 +10,5 @@ *.log .idea .vscode +.eslintcache package-lock.json diff --git a/package.json b/package.json index 6913207d4..4f6c66673 100644 --- a/package.json +++ b/package.json @@ -113,7 +113,7 @@ "pretest": "yarn lint", "prelint": "yarn setup", "lint": "yarn code-lint && yarn schema-lint && yarn type-lint", - "code-lint": "eslint setup lib bin hot buildin \"test/*.js\" \"test/**/webpack.config.js\" \"examples/**/webpack.config.js\" \"schemas/**/*.js\"", + "code-lint": "eslint --cache setup lib bin hot buildin \"test/*.js\" \"test/**/webpack.config.js\" \"examples/**/webpack.config.js\" \"schemas/**/*.js\"", "type-lint": "tsc --pretty", "fix": "yarn code-lint --fix", "pretty": "prettier \"setup/**/*.js\" \"lib/**/*.js\" \"bin/*.js\" \"hot/*.js\" \"buildin/*.js\" \"test/*.js\" \"test/**/webpack.config.js\" \"examples/**/webpack.config.js\" \"schemas/**/*.js\" \"declarations.d.ts\" --write",