Skip to content

Commit 4b7aa12

Browse files
committed
Add pre-commit-config
1 parent 82a9de7 commit 4b7aa12

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

.pre-commit-config.yaml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
ci:
2+
autofix_prs: true
3+
4+
repos:
5+
- repo: https://github.com/pre-commit/pre-commit-hooks
6+
rev: v5.0.0
7+
hooks:
8+
- id: end-of-file-fixer
9+
- id: trailing-whitespace
10+
- id: check-yaml
11+
- id: check-added-large-files
12+
args: ['--maxkb=5000']
13+
14+
# Prettier for formatting TypeScript, JSON, Markdown, etc.
15+
- repo: https://github.com/pre-commit/mirrors-prettier
16+
rev: v4.0.0-alpha.8
17+
hooks:
18+
- id: prettier
19+
entry: prettier --no-error-on-unmatched-pattern --write --ignore-unknown
20+
types: [file]
21+
22+
# ESLint for .ts/.tsx files
23+
- repo: https://github.com/pre-commit/mirrors-eslint
24+
rev: v9.30.1
25+
hooks:
26+
- id: eslint
27+
files: \.tsx?$
28+
types: [file]
29+
additional_dependencies:
30+
31+
- '@typescript-eslint/[email protected]'
32+
- '@typescript-eslint/[email protected]'
33+

0 commit comments

Comments
 (0)