-
-
Notifications
You must be signed in to change notification settings - Fork 25
/
Copy path.pre-commit-config.yaml
49 lines (48 loc) · 1.06 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
ci:
skip:
- deno-fmt
- deno-lint
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
hooks:
- id: end-of-file-fixer
exclude: 'src/icons/.*\.svg'
- id: fix-byte-order-marker
- id: mixed-line-ending
- id: trailing-whitespace
args: [--markdown-linebreak-ext=md]
- id: check-json
- id: check-toml
- id: check-yaml
- repo: local
hooks:
- id: deno-fmt
name: deno fmt
entry: deno fmt
language: system
types_or:
- html
- css
- javascript
- ts
- json
- yaml
exclude_types:
- markdown
exclude: ^pnpm-lock\.yaml$
- repo: local
hooks:
- id: deno-lint
name: deno lint
entry: deno lint
args: ["--fix"]
language: system
files: '\.[cm]?[jt]s$'
- repo: https://github.com/kytta/mirrors-svgo
rev: v4.0.0-rc.1
hooks:
- id: svgo
files: "^src/icons/"
additional_dependencies:
- svgo@3