mirror of
https://github.com/pocket-id/pocket-id.git
synced 2026-10-11 12:19:04 +02:00
chore: add gofmt to stage hook
This commit is contained in:
@@ -7,6 +7,7 @@
|
||||
],
|
||||
"scripts": {
|
||||
"preinstall": "npx only-allow pnpm",
|
||||
"prepare": "vp config --no-agent",
|
||||
"dev": "vp -C frontend run dev",
|
||||
"build": "vp -C frontend run build",
|
||||
"test": "vp -C tests run test",
|
||||
|
||||
+2
-1
@@ -42,7 +42,8 @@ export default defineConfig({
|
||||
staged: {
|
||||
'frontend/**/*': "sh -c 'vp fmt --check frontend'",
|
||||
'tests/**/*': "sh -c 'vp fmt --check tests'",
|
||||
'email-templates/**/*': "sh -c 'vp fmt --check email-templates'"
|
||||
'email-templates/**/*': "sh -c 'vp fmt --check email-templates'",
|
||||
'backend/**/*.go': `sh -c 'command -v gofmt >/dev/null || exit 0; gofmt -d "$@"' gofmt`
|
||||
},
|
||||
test: {
|
||||
exclude: ['**/node_modules/**', 'tests/**'],
|
||||
|
||||
Reference in New Issue
Block a user