-
Notifications
You must be signed in to change notification settings - Fork 8
/
.pre-commit-config.yaml
50 lines (47 loc) · 1.17 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
# See https://pre-commit.com for more information
# See https://pre-commit.com/hooks.html for more hooks
repos:
# region: pre-commit compatible repos
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v3.4.0
hooks:
- id: trailing-whitespace
stages:
- commit
- id: check-yaml
stages:
- commit
- id: check-added-large-files
args:
- "--maxkb=5120"
stages:
- commit
- repo: https://github.com/pre-commit/mirrors-prettier
rev: v2.2.1
hooks:
- id: prettier
name: Run Prettier
files: \.[jt]sx?$
stages:
- commit
# endregion
# region: Custom scripts and executables
- repo: local
hooks:
- id: eslint
name: Lint files with ESLint
entry: ./node_modules/.bin/eslint --fix
language: script
files: \.[jt]sx?$
types: [file]
stages:
- commit
- id: markdownlint
name: Lint Markdown documentation
entry: ./node_modules/.bin/markdownlint
language: script
files: \.md$
types: [file]
stages:
- commit
# endregion