-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathprecommit.toml
More file actions
33 lines (27 loc) · 795 Bytes
/
precommit.toml
File metadata and controls
33 lines (27 loc) · 795 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
[[pre_commit]]
name = "NoDoNotCommit"
cmd = ["iprecommit-no-forbidden-strings", "--paths"]
[[pre_commit]]
name = "NewlineAtEndOfFile"
cmd = ["iprecommit-newline-at-eof"]
autofix = true
fail_fast = true
fix_cmd = ["iprecommit-newline-at-eof", "--fix"]
[[pre_commit]]
name = "CommonTypos"
cmd = ["iprecommit-typos", "--paths"]
[[pre_commit]]
name = "TypeScriptTypeCheck"
cmd = ["npm", "run", "check"]
pass_files = false
# commit-msg checks
[[commit_msg]]
name = "CommitMessageFormat"
cmd = ["iprecommit-commit-msg-format", "--max-line-length", "72"]
[[commit_msg]]
name = "CommitMessageTypos"
cmd = ["iprecommit-typos", "--paths"]
# pre-push checks (run on commit messages)
[[pre_push]]
name = "NoDoNotPush"
cmd = ["iprecommit-no-forbidden-strings", "--strings", "DO NOT PUSH", "--commits"]