From: Jérôme Benoit Date: Thu, 24 Nov 2022 20:50:35 +0000 (+0100) Subject: Use --cache new option with prettier X-Git-Tag: v2.3.8~86 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=e47bed93ee0dde43762d34b3e31224b856331619;p=poolifier.git Use --cache new option with prettier Signed-off-by: Jérôme Benoit --- diff --git a/.lintstagedrc.js b/.lintstagedrc.js index 91447fa0..2d7cf819 100644 --- a/.lintstagedrc.js +++ b/.lintstagedrc.js @@ -1,8 +1,8 @@ module.exports = { '**/*.{ts,tsx,js,jsx,mjs,cjs}': [ - 'prettier --write', + 'prettier --cache --write', 'ts-standard --fix', 'eslint --cache --fix' ], - '**/*.{json,md,yml,yaml}': ['prettier --write'] + '**/*.{json,md,yml,yaml}': ['prettier --cache --write'] } diff --git a/package.json b/package.json index 2115bbe4..2b482d6d 100644 --- a/package.json +++ b/package.json @@ -16,7 +16,7 @@ "test:debug": "npm run build && mocha --no-parallel --inspect 'tests/**/*.test.js'", "coverage": "c8 report --reporter=lcov", "coverage:html": "c8 report --reporter=html", - "format": "prettier . --write; ts-standard . --fix", + "format": "prettier . --cache --write; ts-standard . --fix", "lint": "eslint . --cache", "lint:fix": "eslint . --cache --fix", "lint:report": "eslint . --cache --format json --output-file reports/eslint.json",