-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.pre-commit-config.yaml
39 lines (39 loc) · 1.07 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
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v2.4.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- repo: local
hooks:
- id: eslint_source
name: eslint_source
language: system
entry: yarn prefix:lint:source
files: \.\w*(t|j)s$
exclude: ^test\/
args: ["--quiet"]
- id: eslint_e2e
name: eslint_e2e
language: system
entry: yarn prefix:lint:e2e
files: ^test\/e2e\/.*\.\w*(t|j)s$
args: ["--quiet"]
- id: prettier
name: prettier
language: node
entry: node_modules/.bin/prettier
files: \.(html|json)$
args: ["--check"]
- id: typecheck_source
name: typecheck_source
language: system
entry: node_modules/.bin/tsc-files -p tsconfig.json --noEmit
files: \.\w*ts$
exclude: ^test\/
- id: typecheck_e2e
name: typecheck_e2e
language: system
entry: scripts/typecheck
args: ["e2e"]
files: ^test\/e2e\/.*\.\w*ts$