From 4d12fb046440b4d1756ee6ccfc68d8140694adab Mon Sep 17 00:00:00 2001 From: Alois Klink Date: Wed, 8 Feb 2023 23:58:12 +0000 Subject: [PATCH] build(lint:fix): cache eslint in pnpm run lint:fix Cache eslint in `pnpm run lint:fix`. This was added to the `pnpm run lint` script in b7f9495 (build: add eslint --cache file, 2022-08-27), but we didn't add it to `pnpm run lint:fix` due to worries about cache invalidation. However, we switched to using `--cache-strategy content` in b3e509b7 (build(lint): cache eslint with strategy content, 2023-02-05), which should avoid any caching issues. Co-authored-by: Sidharth Vinod --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 67b1dd8e3..54443fda7 100644 --- a/package.json +++ b/package.json @@ -24,7 +24,7 @@ "dev": "concurrently \"pnpm build:vite --watch\" \"ts-node-esm .vite/server.ts\"", "release": "pnpm build", "lint": "eslint --cache --cache-strategy content --ignore-path .gitignore . && pnpm lint:jison && prettier --cache --check .", - "lint:fix": "eslint --fix --ignore-path .gitignore . && prettier --write . && ts-node-esm scripts/fixCSpell.ts", + "lint:fix": "eslint --cache --cache-strategy content --fix --ignore-path .gitignore . && prettier --write . && ts-node-esm scripts/fixCSpell.ts", "lint:jison": "ts-node-esm ./scripts/jison/lint.mts", "cypress": "cypress run", "cypress:open": "cypress open",