chore: add check script & use in precommit

This commit is contained in:
Ayo Ayco 2024-12-27 16:52:19 +01:00
parent 4966cbbce0
commit 3a682b9232
2 changed files with 2 additions and 1 deletions

View file

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

View file

@ -10,6 +10,7 @@
"preview": "astro preview",
"lint": "eslint . --config eslint.config.mjs",
"format": "prettier . --write",
"check": "npm run format && npm run lint",
"astro": "astro",
"build:preview": "astro build && astro preview",
"deploy": "astro build && scp -r dist ayo@ayco.io:~/ayco.io-flask/",