-
Notifications
You must be signed in to change notification settings - Fork 1
/
.pre-commit-config.yaml
54 lines (51 loc) · 1.38 KB
/
.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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
hooks:
- id: trailing-whitespace
stages:
- pre-commit
exclude: ^dist/
- id: end-of-file-fixer
stages:
- pre-commit
exclude: ^dist/
- id: check-yaml
stages:
- pre-commit
- id: check-added-large-files
stages:
- pre-commit
- repo: https://github.com/alessandrojcm/commitlint-pre-commit-hook
rev: v9.5.0
hooks:
- id: commitlint
name: lint commit messages
stages:
- commit-msg
additional_dependencies:
- "@commitlint/config-conventional"
- repo: https://github.com/pre-commit/mirrors-prettier
rev: v3.0.3
hooks:
- id: prettier
name: check for non-standard formatting concerns
stages:
- pre-commit
additional_dependencies:
- prettier@3
- "@trivago/prettier-plugin-sort-imports"
- repo: https://github.com/pre-commit/mirrors-eslint
rev: v8.50.0
hooks:
- id: eslint
name: check for linting errors and warnings
stages:
- pre-commit
files: \.[jt]sx?$
types: [file]
additional_dependencies:
- eslint@8
- "@typescript-eslint/eslint-plugin"
- "@typescript-eslint/parser"
- eslint-config-prettier