Skip to content

Commit

Permalink
Add local pre-commit hook to format with Deno
Browse files Browse the repository at this point in the history
  • Loading branch information
kytta committed Jan 28, 2025
1 parent 656321e commit d283a13
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
ci:
skip:
- deno-fmt

repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
Expand All @@ -11,6 +15,22 @@ repos:
- id: check-json
- id: check-toml
- id: check-yaml
- repo: local
hooks:
- id: deno-fmt
name: deno fmt
entry: deno fmt
language: system
types_or:
- html
- css
- javascript
- ts
- json
- yaml
exclude_types:
- markdown
exclude: ^pnpm-lock\.yaml$
- repo: https://github.com/pre-commit/mirrors-eslint
rev: "v9.14.0"
hooks:
Expand Down

0 comments on commit d283a13

Please sign in to comment.