Skip to content

Commit

Permalink
feat: use pre-commit-config
Browse files Browse the repository at this point in the history
  • Loading branch information
bolinocroustibat committed Aug 28, 2024
1 parent 116883d commit 6109a9f
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,17 @@
repos:
# https://github.com/pre-commit/pre-commit-hooks#pre-commit-hooks
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.6.0
hooks:
- id: check-yaml
- id: end-of-file-fixer
- id: trailing-whitespace
- id: check-added-large-files

- repo: local
hooks:
- id: local-biome-check
name: biome check
entry: bun biome check --write --files-ignore-unknown=true --no-errors-on-unmatched
entry: bunx @biomejs/biome check --write src/.
language: system
types: [text]
files: "\\.(jsx?|tsx?|c(js|ts)|m(js|ts)|d\\.(ts|cts|mts)|jsonc?)$"

0 comments on commit 6109a9f

Please sign in to comment.