-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-config.yaml
47 lines (47 loc) · 1.44 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
default_install_hook_types: [pre-commit, commit-msg]
default_stages: [commit, manual]
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v3.4.0
hooks:
- id: check-added-large-files
args:
- '--maxkb=10000'
- id: end-of-file-fixer
- id: check-json
- id: check-toml
- id: check-xml
- id: check-case-conflict
- id: check-symlinks
- id: check-merge-conflict
stages:
- commit
- merge-commit
- manual
- repo: https://github.com/alessandrojcm/commitlint-pre-commit-hook
rev: v9.16.0
hooks:
- id: commitlint
additional_dependencies: ['@commitlint/config-conventional']
stages:
- commit-msg
- repo: https://github.com/prettier/pre-commit
rev: v2.1.2
hooks:
- id: prettier
- repo: https://github.com/pre-commit/mirrors-eslint
rev: 'v9.6.0'
hooks:
- id: eslint
args:
- '--fix'
- '--config'
- 'eslint.config.js'
additional_dependencies:
- '@eslint/[email protected]'
files: \.(ts|html)$
types: [file]