From e25428c8dceb86eb4277af90155295fd0188abce Mon Sep 17 00:00:00 2001 From: Alex Anderson <191496+alxndrsn@users.noreply.github.com> Date: Thu, 16 May 2024 19:32:41 +0300 Subject: [PATCH] eslint: use cache (#3218) This significantly speeds up eslint after first run. Co-authored-by: alxndrsn --- .gitignore | 1 + package.json | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index b6e058f2..8e242c10 100644 --- a/.gitignore +++ b/.gitignore @@ -7,5 +7,6 @@ package-lock.json *.swp dist .DS_Store +/.eslintcache .vscode/ manually-test-on-heroku.js diff --git a/package.json b/package.json index 2e208ef4..3e08d83a 100644 --- a/package.json +++ b/package.json @@ -17,7 +17,7 @@ "docs:start": "cd docs && yarn start", "pretest": "yarn build", "prepublish": "yarn build", - "lint": "eslint '*/**/*.{js,ts,tsx}'" + "lint": "eslint --cache '*/**/*.{js,ts,tsx}'" }, "devDependencies": { "@typescript-eslint/eslint-plugin": "^7.0.0",