chore: add check script and use in precommit

This commit is contained in:
Ayo Ayco 2024-12-27 16:56:12 +01:00
parent bb056b09f5
commit 96e9ca07d5
2 changed files with 3 additions and 2 deletions

View file

@ -1 +1 @@
npm run lint
npm run check

View file

@ -28,7 +28,8 @@
"build:preview": "astro build && node ./server.mjs",
"test": "echo \"Error: no test specified\" && exit 1",
"format": "prettier . --write",
"lint": "eslint . --config eslint.config.mjs",
"lint": "eslint . --config eslint.config.mjs --cache",
"check": "npm run format && npm run lint",
"prepare": "husky"
},
"keywords": [