-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
30 lines (29 loc) · 736 Bytes
/
Copy path.pre-commit-config.yaml
File metadata and controls
30 lines (29 loc) · 736 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
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v6.0.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-yaml
- id: check-added-large-files
- id: check-merge-conflict
- repo: local
hooks:
- id: lint
name: ESLint
entry: npm run lint
language: system
pass_filenames: false
types: [ts, tsx]
- id: typecheck
name: TypeScript Type Check
entry: npx tsc --noEmit
language: system
pass_filenames: false
types: [ts, tsx]
- id: test
name: Tests
entry: npm run test
language: system
pass_filenames: false
stages: [pre-push]