-
Notifications
You must be signed in to change notification settings - Fork 1
/
.pre-commit-config.yaml
53 lines (53 loc) · 1.64 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
---
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.1.0
hooks:
- id: check-added-large-files
- id: check-case-conflict
- id: check-merge-conflict
- id: check-symlinks
- id: check-xml
- id: end-of-file-fixer
- id: mixed-line-ending
- id: trailing-whitespace
- id: check-shebang-scripts-are-executable
- id: check-executables-have-shebangs
- id: fix-byte-order-marker # Forbid UTF-8 byte-order markers
- id: no-commit-to-branch
args: [--branch, main]
- repo: https://github.com/pre-commit/mirrors-eslint
rev: 'v8.52.0' # Use the sha / tag you want to point at
hooks:
- id: eslint
types_or: [javascript, jsx, ts, tsx, vue]
types: [file]
additional_dependencies:
- eslint-plugin-vue@v7.5.0
- repo: https://github.com/pre-commit/mirrors-prettier
rev: 'v2.7.1' # Use the sha / tag you want to point at
hooks:
- id: prettier
- repo: https://github.com/Lucas-C/pre-commit-hooks
rev: v1.5.4
hooks:
- id: insert-license
files: \.([jt]s|scss)$
args:
- --license-filepath
- LICENSE.txt # defaults to: LICENSE.txt
- --comment-style
- /*| *| */
- --use-current-year
- --no-extra-eol
- --fuzzy-match-generates-todo
- id: insert-license
files: \.vue$
args:
- --license-filepath
- LICENSE.txt # defaults to: LICENSE.txt
- --comment-style
- <!--| * | -->
- --use-current-year
- --no-extra-eol
- --fuzzy-match-generates-todo