-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
36 lines (35 loc) · 978 Bytes
/
Copy path.pre-commit-config.yaml
File metadata and controls
36 lines (35 loc) · 978 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
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks.git
rev: v6.0.0
hooks:
- id: check-added-large-files
- id: check-case-conflict
- id: check-executables-have-shebangs
- id: check-illegal-windows-names
- id: check-json
- id: check-merge-conflict
- id: check-shebang-scripts-are-executable
- id: check-yaml
- id: detect-aws-credentials
- id: detect-private-key
- id: fix-byte-order-marker
- id: mixed-line-ending
- id: pretty-format-json
args:
- "--autofix"
- "--indent=2"
- "--no-sort-keys"
- repo: local
hooks:
- id: eslint
name: eslint
entry: npm run lint
language: system
types_or: [javascript, jsx, ts, tsx]
pass_filenames: false
- id: jest
name: jest
entry: npm test
language: system
files: \.(js|jsx|ts|tsx|json)$
pass_filenames: false