-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.pre-commit-config.yaml
35 lines (31 loc) · 978 Bytes
/
.pre-commit-config.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
---
minimum_pre_commit_version: 3.3.0
default_install_hook_types: [pre-commit, commit-msg]
default_stages: [pre-commit]
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: mixed-line-ending
args: ["-f=lf"]
- id: check-added-large-files
- repo: https://github.com/espressif/conventional-precommit-linter
rev: v1.3.0
hooks:
- id: conventional-precommit-linter
stages: [commit-msg]
- repo: https://github.com/pre-commit/mirrors-prettier
rev: v3.0.3
hooks:
- id: prettier
args: ["--write", "--ignore-unknown"] # this will format files in place
exclude: '\.git'
stages: [pre-commit]
- repo: https://github.com/pre-commit/mirrors-eslint
rev: v8.53.0
hooks:
- id: eslint
files: ^src/.*\.ts$ # Match only TypeScript files in the src/ directory
types: [file]