From: Jérôme Benoit Date: Thu, 24 Nov 2022 21:06:22 +0000 (+0100) Subject: Use prettier caching feature X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=586ba8db696a7155e345470a32745695fdb6944f;p=benchmarks-js.git Use prettier caching feature Signed-off-by: Jérôme Benoit --- diff --git a/.lintstagedrc.js b/.lintstagedrc.js index 1ee58bf..a80d0ee 100644 --- a/.lintstagedrc.js +++ b/.lintstagedrc.js @@ -1,8 +1,8 @@ module.exports = { '*.{js,jsx,mjs,cjs}': [ - 'prettier --write', + 'prettier --cache --write', '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 3d7b5d6..f302898 100644 --- a/package.json +++ b/package.json @@ -21,7 +21,7 @@ "benchmark:fibonacci": "node fibonacci.js", "benchmark:random": "node random.js", "benchmark:uuid-generator": "node uuid-generator.js", - "format": "prettier . --write; standard . --fix", + "format": "prettier . --cache --write; standard . --fix", "lint": "eslint . --cache", "lint:fix": "eslint . --cache --fix", "test": "echo \"Error: no test specified\" && exit 1"