-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.pre-commit-config.yaml
78 lines (72 loc) · 2.18 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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
default_language_version:
node: 18.12.0
repos:
##############
# Common stuff
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0 # Use the ref you want to point at
hooks:
- id: mixed-line-ending
alias: eol
- id: trailing-whitespace
exclude_types: [svg]
- id: end-of-file-fixer
alias: eof
exclude_types: [svg]
# - repo: https://github.com/streetsidesoftware/cspell-cli
# rev: v6.30.1
# hooks:
# - id: cspell
# stages:
# - manual
# args:
# - --config=./.cspell/cspell.config.yml
# - --no-progress
# - --dot
# - --no-must-find-files
# - --no-summary
# - --gitignore
# additional_dependencies:
# - "@cspell/dict-en_us"
# - "@cspell/dict-fr-fr"
# - "@cspell/dict-fr-reforme"
# - "@cspell/dict-bash"
# - "@cspell/dict-shell"
# - "@cspell/dict-win32"
####
# Js
- repo: local
hooks:
- id: eslint
name: eslint
entry: eslint
language: node
# see: https://github.com/pre-commit/identify/blob/master/identify/extensions.py
types_or: [vue, ts, tsx, javascript, jsx]
args: [--config=.eslintrc.cjs]
# Deps should be kept updated with `client/package-lock.json` !
additional_dependencies:
- "@intlify/[email protected]"
- "@typescript-eslint/[email protected]"
- "@typescript-eslint/[email protected]"
- "@vue/[email protected]"
- repo: local
hooks:
- id: prettier
name: prettier
entry: >-
npx prettier
--config=.prettierrc.json5
--ignore-path=.prettierignore
--check
language: node
types_or: [vue, ts, tsx, javascript, jsx, html]
additional_dependencies: