-
-
Notifications
You must be signed in to change notification settings - Fork 356
Expand file tree
/
Copy pathlefthook.json
More file actions
37 lines (37 loc) · 1.28 KB
/
Copy pathlefthook.json
File metadata and controls
37 lines (37 loc) · 1.28 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
{
"pre-commit": {
"parallel": true,
"commands": {
"markdown-lint": {
"glob": "**/*.md",
"run": "pnpm exec markdownlint --ignore-path .markdownlintignore {staged_files}",
"stage_fixed": true,
"skip": ["merge", "rebase"]
},
"oxlint": {
"glob": "*.{js,mjs,cjs,ts,jsx,tsx,astro}",
"run": "pnpm lint",
"skip": ["merge", "rebase"]
},
"format-oxfmt": {
"glob": "*.{js,mjs,cjs,ts,jsx,tsx}",
"run": "pnpm exec oxfmt --write {staged_files}",
"stage_fixed": true,
"skip": ["merge", "rebase"]
},
"format-astro": {
"root": "apps/virtuoso.dev/",
"glob": "apps/virtuoso.dev/**/*.astro",
"run": "pnpm exec prettier --write {staged_files}",
"stage_fixed": true,
"skip": ["merge", "rebase"]
},
"validate-skill-manifests": {
"glob": "{.claude-plugin/marketplace.json,.agents/plugins/marketplace.json,packages/virtuoso-skills/.claude-plugin/plugin.json,plugins/virtuoso-skills/.codex-plugin/plugin.json}",
"run": "node -e \"for (const f of process.argv.slice(1)) JSON.parse(require('fs').readFileSync(f, 'utf8'))\" -- {staged_files}",
"stage_fixed": false,
"skip": ["merge", "rebase"]
}
}
}
}