-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-config.yaml
53 lines (53 loc) · 1.4 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
---
# Define the hooks to be executed before each commit.
# Documentation: https://pre-commit.com/index.html
default_stages: [commit]
repos:
- repo: local
hooks:
- id: eslint
name: eslint
entry: npm run eslint:fix
language: system
types: [file, javascript]
pass_filenames: false
- repo: local
hooks:
- id: prettier
name: prettier XML
entry: npm run prettier:xml
language: system
types: [file, xml]
exclude_types: [svg]
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
hooks:
- id: check-added-large-files
- id: check-docstring-first
- id: check-json
- id: check-xml
- id: check-yaml
- id: end-of-file-fixer
exclude_types: [svg]
- id: trailing-whitespace
- repo: https://github.com/crate-ci/typos
rev: v1.15.2
hooks:
- id: typos
args: [--format, brief, --write-changes]
- repo: https://github.com/python-jsonschema/check-jsonschema
rev: 0.23.2
hooks:
- id: check-dependabot
name: validate dependabot
- id: check-github-workflows
name: validate github workflows
- repo: https://github.com/lyz-code/yamlfix
rev: 1.11.0
hooks:
- id: yamlfix
- repo: https://github.com/commitizen-tools/commitizen
rev: 3.4.0
hooks:
- id: commitizen
stages: [commit-msg]