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