-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy path.pre-commit-config.yaml
57 lines (52 loc) · 1.42 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
55
56
57
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.6.0
hooks:
- id: trailing-whitespace
exclude: \.html$
- id: end-of-file-fixer
exclude: \.html$
- id: check-added-large-files
args: ['--maxkb=20000']
- id: check-yaml
- id: double-quote-string-fixer
exclude: \.html$
- repo: https://github.com/pre-commit/mirrors-prettier
rev: 'v4.0.0-alpha.8'
hooks:
- id: prettier
exclude: \.html$
files: "\\.(\
css|less|scss\
|graphql|gql\
|html\
|js|jsx\
|json\
|ts|tsx\
|vue\
|yaml|yml\
)$"
- repo: https://github.com/pre-commit/mirrors-prettier
rev: 'v4.0.0-alpha.8'
hooks:
- id: prettier
name: prettier-markdown
entry: prettier --write --parser mdx
files: "\\.(\
|md|markdown|mdown|mkdn\
|mdx\
)$"
# exclude files ending with .html
exclude: \.html$
# Lint: JS code
- repo: https://github.com/pre-commit/mirrors-eslint
rev: 'v8.56.0' # Use the sha / tag you want to point at
hooks:
- id: eslint
files: \.js?$
types: [file]
additional_dependencies:
# Duplicated from package.json's devDependencies, otherwise pre-commit.ci
# does not like it
- eslint-plugin-react