-
-
Notifications
You must be signed in to change notification settings - Fork 860
/
.pre-commit-config.yaml
50 lines (50 loc) · 1.39 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
exclude: locale/|^tabbycat/static/
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v2.4.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
exclude_types:
- csv
- svg
- id: check-yaml
- id: check-added-large-files
- repo: https://github.com/PyCQA/flake8
rev: 5.0.4
hooks:
- id: flake8
additional_dependencies:
- flake8-import-order
- flake8-quotes
- pep8-naming
- flake8-commas
exclude: migrations/
- repo: https://github.com/awebdeveloper/pre-commit-stylelint
rev: '0.0.2' # Use the sha or tag you want to point at like 0.0.1
hooks:
- id: stylelint
files: '\.scss' # Only lint sass; not static assets
types: [file]
additional_dependencies:
- repo: https://github.com/pre-commit/mirrors-eslint
rev: 'v7.3.1' # Use the sha / tag you want to point at
hooks:
- id: eslint
files: '\.vue'
types: [file]
additional_dependencies:
- '@vue/[email protected]'
- '@vue/[email protected]'