From e60a5ba3f0d9812ccabaab18187801908f8f1147 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=B4me=20Benoit?= Date: Thu, 24 Nov 2022 21:54:26 +0100 Subject: [PATCH] Use new prettier --cache option MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Jérôme Benoit --- .lintstagedrc.json | 6 +++--- package.json | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) 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", -- 2.34.1