From dc62e17709feba970aca2953eea58a3de107d4c7 Mon Sep 17 00:00:00 2001 From: alxndrsn Date: Thu, 16 May 2024 11:34:07 +0000 Subject: [PATCH] eslint: use cache This significantly speeds up eslint after first run. --- .gitignore | 1 + package.json | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index b6e058f2e..8e242c10d 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 2e208ef46..3e08d83a3 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",