forked from CodeWithMa/watch-list
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathprek.toml
More file actions
71 lines (69 loc) · 1.86 KB
/
Copy pathprek.toml
File metadata and controls
71 lines (69 loc) · 1.86 KB
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
exclude = { glob = ["dist/**", "dist-electron/**", "release/**", "node_modules/**", ".angular/**", "tsconfig*.json"] }
[[repos]]
repo = "builtin"
hooks = [
{ id = "trailing-whitespace", stages = ["pre-commit"] },
{ id = "end-of-file-fixer", stages = ["pre-commit"] },
{ id = "check-yaml", stages = ["pre-commit"] },
{ id = "check-json", stages = ["pre-commit"] },
{ id = "check-toml", stages = ["pre-commit"] },
{ id = "check-merge-conflict", stages = ["pre-commit"] },
{ id = "detect-private-key", stages = ["pre-commit"] },
{ id = "check-added-large-files", stages = ["pre-commit"] },
{ id = "no-commit-to-branch", args = ["--branch", "main", "--branch", "dev"], stages = ["pre-commit"] },
]
[[repos]]
repo = "local"
hooks = [
{
id = "eslint",
name = "ESLint",
language = "system",
entry = "bun run lint",
files = "\\.(ts|html)$",
types_or = ["file"],
pass_filenames = false,
stages = ["pre-commit"],
},
{
id = "prettier",
name = "Prettier",
language = "system",
entry = "bunx prettier --write",
files = "\\.(ts|html|css)$",
stages = ["pre-commit"],
},
{
id = "tsc",
name = "TypeScript",
language = "system",
entry = "bunx tsc --noEmit -p tsconfig.app.json",
files = "\\.ts$",
pass_filenames = false,
stages = ["pre-commit"],
},
{
id = "tsc-electron",
name = "TypeScript (electron)",
language = "system",
entry = "bunx tsc --noEmit -p electron/tsconfig.json",
files = "\\.ts$",
pass_filenames = false,
stages = ["pre-commit"],
},
{
id = "knip",
name = "Knip (dead code)",
language = "system",
entry = "bun run --bun knip",
pass_filenames = false,
stages = ["pre-commit"],
},
{
id = "commitlint",
name = "Commitlint",
language = "system",
entry = "bunx commitlint --edit",
stages = ["commit-msg"],
},
]