Skip to content

Commit 382cd57

Browse files
committed
add pre commit
1 parent 1d0aefb commit 382cd57

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

.pre-commit-config.yaml

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
exclude: '^tests/snapshots/'
2+
repos:
3+
- repo: https://github.com/pre-commit/pre-commit-hooks
4+
rev: v4.5.0
5+
hooks:
6+
- id: check-yaml
7+
- id: end-of-file-fixer
8+
- id: trailing-whitespace
9+
- repo: https://github.com/astral-sh/ruff-pre-commit
10+
rev: v0.1.14
11+
hooks:
12+
- id: ruff
13+
- repo: https://github.com/psf/black
14+
rev: 24.1.0
15+
hooks:
16+
- id: black
17+
- repo: https://github.com/pre-commit/mirrors-prettier
18+
rev: v3.1.0
19+
hooks:
20+
- id: prettier
21+
types_or: [css, javascript, ts, tsx, html]

0 commit comments

Comments
 (0)