Skip to content

Commit d2da2ab

Browse files
committed
Superb pre-commit pipeline with prek
1 parent 8ef6ad9 commit d2da2ab

File tree

2 files changed

+27
-6
lines changed

2 files changed

+27
-6
lines changed

prek.toml

Lines changed: 22 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,24 @@
11
[[repos]]
22
repo = "local"
3-
hooks = [
4-
{ id = "biome", name = "biome", language = "system", entry = "bun x @biomejs/biome check --write --no-errors-on-unmatched", files = { glob = "**/*.{js,ts,jsx,tsx,json,jsonc}" } },
5-
{ id = "ast-grep", name = "ast-grep", language = "system", entry = "ast-grep scan" },
6-
{ id = "type-check", name = "type-check", language = "system", entry = "bun x tsc --noEmit", pass_filenames = false }
7-
]
3+
4+
[[repos.hooks]]
5+
id = "biome"
6+
name = "biome"
7+
language = "system"
8+
entry = "bun x @biomejs/biome check --write --no-errors-on-unmatched"
9+
files = {
10+
glob = "**/*.{js,ts,jsx,tsx,json,jsonc}"
11+
}
12+
13+
[[repos.hooks]]
14+
id = "ast-grep"
15+
name = "ast-grep"
16+
language = "system"
17+
entry = "ast-grep scan"
18+
19+
[[repos.hooks]]
20+
id = "type-check"
21+
name = "type-check"
22+
language = "system"
23+
entry = "tsc --noEmit -p tsconfig.json"
24+
pass_filenames = false

tsconfig.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,14 @@
1010
"allowJs": true,
1111
"noEmit": true,
1212
"strict": true,
13+
"skipLibCheck": true,
14+
"baseUrl": ".",
1315
"types": ["vinxi/types/client", "bun-types"],
1416
"isolatedModules": true,
1517
"paths": {
1618
"~/*": ["./src/*"]
1719
}
18-
}
20+
},
21+
"include": ["src"],
22+
"exclude": ["node_modules", "dist", ".output", ".vinxi"]
1923
}

0 commit comments

Comments
 (0)