Skip to content

Commit

Permalink
feat: add biome linting commands
Browse files Browse the repository at this point in the history
  • Loading branch information
sbsrnt committed Mar 3, 2024
1 parent 51f2d19 commit 0b6af23
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions packages/lefthook-config/lefthook.yml
Original file line number Diff line number Diff line change
@@ -1,17 +1,13 @@
pre-commit:
parallel: true
commands:
format:
glob: "*.{js,ts,jsx,tsx}"
run: npm run format {staged_files}

lint:
glob: "*.{js,ts,jsx,tsx}"
run: npm run lint {staged_files}
glob: "*.{js,ts,cjs,mjs,d.cts,d.mts,jsx,tsx,json,jsonc,yml,yaml}"
run: npx biome check --no-errors-on-unmatched --files-ignore-unknown=true {staged_files}

"lint:apply":
glob: "*.{js,ts,jsx,tsx}"
run: npm run lint:apply {staged_files}
glob: "*.{js,ts,cjs,mjs,d.cts,d.mts,jsx,tsx,json,jsonc,yml,yaml}"
run: npx biome check --apply --no-errors-on-unmatched --files-ignore-unknown=true {staged_files} && git update-index --again

commit-msg:
scripts:
Expand Down

0 comments on commit 0b6af23

Please sign in to comment.