-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
39 lines (39 loc) · 993 Bytes
/
.pre-commit-config.yaml
File metadata and controls
39 lines (39 loc) · 993 Bytes
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
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v6.0.0
hooks:
- id: trailing-whitespace
exclude: ^dist/.*$
- id: end-of-file-fixer
exclude: ^dist/.*$
- id: check-yaml
exclude: ^dist/.*$
- id: check-added-large-files
exclude: ^dist/.*$
- id: no-commit-to-branch
- repo: https://github.com/rhysd/actionlint
rev: v1.7.12
hooks:
- id: actionlint
- repo: local
hooks:
- id: fix-vulns
name: Fix Vulnerabilities
entry: npm audit fix
language: system
pass_filenames: false
- id: lint
name: Lint
entry: npm run lint
language: system
pass_filenames: false
- id: build
name: Build dist/
entry: npm run prepare
language: system
pass_filenames: false
- id: test
name: Execute tests
entry: npm run test
language: system
pass_filenames: false