From: Jérôme Benoit Date: Thu, 24 Nov 2022 20:54:26 +0000 (+0100) Subject: Use new prettier --cache option X-Git-Tag: v1.1.88~18 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=e60a5ba3f0d9812ccabaab18187801908f8f1147;p=e-mobility-charging-stations-simulator.git Use new prettier --cache option Signed-off-by: Jérôme Benoit --- diff --git a/.lintstagedrc.json b/.lintstagedrc.json index 699dd0fa..88f2a228 100644 --- a/.lintstagedrc.json +++ b/.lintstagedrc.json @@ -1,5 +1,5 @@ { - "{src,test}/**/*.{ts,tsx}": ["prettier --write", "eslint --cache --fix"], - "**/*.{json,md,yml,yaml}": ["prettier --write"], - "**/*.{js,jsx,mjs,cjs}": ["prettier --write", "eslint --cache --fix"] + "{src,test}/**/*.{ts,tsx}": ["prettier --cache --write", "eslint --cache --fix"], + "**/*.{json,md,yml,yaml}": ["prettier --cache --write"], + "**/*.{js,jsx,mjs,cjs}": ["prettier --cache --write", "eslint --cache --fix"] } diff --git a/package.json b/package.json index 605c71e8..7efb6b51 100644 --- a/package.json +++ b/package.json @@ -58,7 +58,7 @@ "build:dev:watch": "npm run rollup -- --environment BUILD:development --watch", "lint": "cross-env TIMING=1 eslint --cache --ext .js,.ts src", "lint:fix": "cross-env TIMING=1 eslint --cache --fix --ext .js,.ts src", - "format": "prettier --write .", + "format": "prettier --cache --write .", "test": "c8 mocha test/**/*Test.ts", "test:debug": "mocha --no-parallel --inspect test/**/*Test.ts", "coverage": "c8 report --reporter=lcov",