From c43824c6a37b2d94257195b9f5c9a75d87b8b00b Mon Sep 17 00:00:00 2001 From: Oprysk Vyacheslav Date: Wed, 26 Jan 2022 11:54:27 +0200 Subject: [PATCH] chore: add cache option for eslint (#1876) --- .gitignore | 1 + package.json | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 5a12009a..84e2c76f 100644 --- a/.gitignore +++ b/.gitignore @@ -37,3 +37,4 @@ stats.json yarn.lock .idea .vscode +.eslintcache diff --git a/package.json b/package.json index 83dffe7a..ff17e226 100644 --- a/package.json +++ b/package.json @@ -49,7 +49,7 @@ "stats": "webpack --env production --env standalone --json --profile --mode=production > stats.json", "prettier": "prettier --write \"cli/index.ts\" \"src/**/*.{ts,tsx}\"", "changelog": "conventional-changelog -p angular -i CHANGELOG.md -s -r 1", - "lint": "eslint 'src/**/*.{js,ts,tsx}'", + "lint": "eslint 'src/**/*.{js,ts,tsx}' --cache", "benchmark": "node ./benchmark/benchmark.js", "start:demo": "webpack serve --hot --config demo/webpack.config.ts --mode=development", "compile:cli": "tsc custom.d.ts cli/index.ts --target es6 --module commonjs --types yargs",