Add pre-commit hook that runs all the checks.

This commit is contained in:
baldo 2022-08-26 16:16:26 +02:00
parent 8cf692b523
commit 53bb20781d
3 changed files with 26 additions and 1 deletions
frontend

View file

@ -8,9 +8,11 @@
"email": "andreas@baldeau.net"
},
"scripts": {
"check": "yarn run typecheck && yarn run lint",
"dev": "vite",
"build": "vue-tsc --noEmit && vite build",
"preview": "vite preview --port 5050",
"test": "yarn run test:unit",
"test:unit": "vitest --environment jsdom",
"typecheck": "vue-tsc --noEmit",
"lint": "eslint . --ext .vue,.js,.jsx,.cjs,.mjs,.ts,.tsx,.cts,.mts --fix --ignore-path .gitignore"