From 3ca3074a78abb37a04574fa979171df7d4bca35e Mon Sep 17 00:00:00 2001 From: Niels Baggerman Date: Mon, 15 Apr 2024 11:58:15 +0200 Subject: [PATCH] fix: missing path for bulk format command --- lint-staged.config.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lint-staged.config.js b/lint-staged.config.js index 9a461a1..0d46e4f 100644 --- a/lint-staged.config.js +++ b/lint-staged.config.js @@ -12,7 +12,7 @@ function lint(filenames) { /** @type {import("lint-staged").ConfigFn} */ function prettier(filenames) { // If there are more than 10 staged files, run prettier over the whole project - if (filenames.length > 10) return 'prettier --write'; + if (filenames.length > 10) return 'prettier --write .'; // Otherwise, run prettier over each file individually return `prettier --write ${filenames.map((f) => path.relative(process.cwd(), f)).join(' ')}`;