2
0
Эх сурвалжийг харах

Remove --unsafe flag from Biome pre-commit hook

Per Biome official documentation, --unsafe should NOT be used in pre-commit hooks.
The --unsafe flag applies both safe AND unsafe fixes, which could break code logic.
Pre-commit hooks should only apply safe fixes using --write without --unsafe.

Co-authored-by: yuki-takei <1638767+yuki-takei@users.noreply.github.com>
copilot-swe-agent[bot] 3 сар өмнө
parent
commit
6590960ce5
1 өөрчлөгдсөн 1 нэмэгдсэн , 1 устгасан
  1. 1 1
      lefthook.yml

+ 1 - 1
lefthook.yml

@@ -6,5 +6,5 @@ pre-commit:
   commands:
     biome-format:
       glob: "*.{js,jsx,ts,tsx,json,jsonc}"
-      run: pnpm biome check --write --unsafe --no-errors-on-unmatched --files-ignore-unknown=true {staged_files}
+      run: pnpm biome check --write --no-errors-on-unmatched --files-ignore-unknown=true {staged_files}
       stage_fixed: true