From 4bbceaee6a8a84835a240abd2a4b6684208a1895 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=B4me=20Benoit?= Date: Sun, 25 Oct 2026 19:26:09 +0100 Subject: [PATCH] refactor(hooks): share Biome formatting task Run staged tasks serially so ESLint stays after Biome. --- .husky/pre-commit | 2 +- .lintstagedrc.js | 7 ++----- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/.husky/pre-commit b/.husky/pre-commit index c27d8893a..f0db25bff 100755 --- a/.husky/pre-commit +++ b/.husky/pre-commit @@ -1 +1 @@ -lint-staged +lint-staged --concurrent false diff --git a/.lintstagedrc.js b/.lintstagedrc.js index 60bbb5a49..929e898b2 100644 --- a/.lintstagedrc.js +++ b/.lintstagedrc.js @@ -1,8 +1,5 @@ export default { - '**/*.json': ['biome format --no-errors-on-unmatched --write'], - '**/*.{md,yml,yaml}': ['biome format --no-errors-on-unmatched --write'], - '**/*.{ts,tsx,js,jsx,cjs,mjs}': [ + '**/*.{json,md,yml,yaml,ts,tsx,js,jsx,cjs,mjs}': 'biome format --no-errors-on-unmatched --write', - 'eslint --cache --fix', - ], + '**/*.{ts,tsx,js,jsx,cjs,mjs}': 'eslint --cache --fix', } -- 2.53.0