Skip to content

Commit 9d58fed

Browse files
committed
add precommits
1 parent d2c3e21 commit 9d58fed

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

Diff for: .pre-commit-config.yaml

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
fail_fast: true
2+
3+
repos:
4+
- repo: https://github.com/pre-commit/mirrors-prettier
5+
rev: v3.1.0
6+
hooks:
7+
- id: prettier
8+
types_or: [yaml, json5]
9+
10+
- repo: https://github.com/astral-sh/ruff-pre-commit
11+
rev: v0.8.1
12+
hooks:
13+
- id: ruff-format
14+
- id: ruff
15+
args: [--fix, --exit-non-zero-on-fix]

0 commit comments

Comments
 (0)