-
Notifications
You must be signed in to change notification settings - Fork 8
/
.pre-commit-config.yaml
40 lines (40 loc) · 1.04 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
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
hooks:
- id: check-merge-conflict
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
hooks:
- id: end-of-file-fixer
- id: trailing-whitespace
- id: mixed-line-ending
- id: file-contents-sorter
files: >-
^.gitignore$
- id: check-case-conflict
- id: check-shebang-scripts-are-executable
- id: check-json
- id: check-toml
- id: check-yaml
- id: check-symlinks
- id: debug-statements
- id: fix-byte-order-marker
- id: fix-encoding-pragma
args: ["--remove"]
- id: detect-private-key
- repo: local
hooks:
- id: lint
name: lint
language: system
entry: yarn lintfix:precommit
files: '\.(js|vue)$'
require_serial: true
- id: prettier
name: prettier
language: system
entry: yarn prettier
types: [text]
exclude: '\.(js|vue)$'
require_serial: true