-
Notifications
You must be signed in to change notification settings - Fork 27
/
.pre-commit-config.yaml
69 lines (69 loc) · 1.93 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
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.0.1
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-yaml
- id: check-json
- id: check-added-large-files
- repo: https://github.com/jumanjihouse/pre-commit-hooks.git
rev: 2.1.5
hooks:
- id: shellcheck
args: ['--shell=bash', '--color=always', '--external-sources']
additional_dependencies: []
- repo: local
hooks:
- id: prettier
name: prettier
entry: npx prettier --write --list-different --ignore-unknown
language: system
pass_filenames: true
types: [text]
args: []
require_serial: false
- id: eslint
name: eslint
entry: npx eslint
language: system
pass_filenames: true
types_or: [ts, javascript]
args: []
require_serial: false
- repo: local
hooks:
- id: tests
name: Mocha tests
language: system
entry: npm test
always_run: true
pass_filenames: false
require_serial: true
- repo: local
hooks:
- id: coverage
name: Ensure that coverage hasn't decreased per-file
language: system
entry: ./check-coverage last-coverage-summary.json
always_run: true
pass_filenames: false
require_serial: true
- repo: local
hooks:
- id: svelte-check
name: Svelte check
language: system
entry: npx svelte-check --fail-on-warnings
always_run: true
pass_filenames: false
require_serial: true
- repo: local
hooks:
- id: rollup
name: Rollup dry run
language: system
entry: sh -c 'ADDON_DIST_DIR="$(mktemp -d)"; export ADDON_DIST_DIR; npm run build; EXITCODE=$?; rm -r "${ADDON_DIST_DIR}"; exit "${EXITCODE}"'
always_run: true
pass_filenames: false
require_serial: true