forked from homewizard/api-documentation
-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.pre-commit-config.yaml
37 lines (33 loc) · 974 Bytes
/
.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
---
repos:
- repo: local
hooks:
- id: linter
name: Linter
pass_filenames: False
language: system
entry: npm run lint
- id: formatter
name: Formatter
pass_filenames: False
language: system
entry: npm run format
- id: spell-checker
name: Spell Checker
pass_filenames: False
language: system
entry: npm run spell-checker
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.1.0
hooks:
- id: no-commit-to-branch
name: Check if commit is not in branch 'main'
args:
- --branch=main
- id: end-of-file-fixer
- id: check-json
- id: check-yaml
- id: check-added-large-files
- id: check-case-conflict
- id: trailing-whitespace
- id: mixed-line-ending