-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathprek.toml
More file actions
33 lines (29 loc) · 730 Bytes
/
Copy pathprek.toml
File metadata and controls
33 lines (29 loc) · 730 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
minimum_prek_version = "0.4.5"
default_install_hook_types = ["pre-commit", "commit-msg"]
[[repos]]
repo = "builtin"
hooks = [
{ id = "check-added-large-files" },
{ id = "check-json" },
{ id = "check-merge-conflict" },
{ id = "check-toml" },
{ id = "check-yaml" },
{ id = "end-of-file-fixer" },
{ id = "trailing-whitespace" },
]
[[repos]]
repo = "local"
[[repos.hooks]]
id = "commitlint"
name = "commitlint"
entry = "npx --no-install commitlint --edit"
language = "system"
stages = ["commit-msg"]
always_run = true
[[repos.hooks]]
id = "oxlint"
name = "oxlint"
entry = "npx --prefix web --no-install oxlint --deny-warnings"
language = "system"
files = "^web/.*\\.(?:[cm]?[jt]sx?|svelte)$"
stages = ["pre-commit"]