chore: add check script and use in precommit
This commit is contained in:
parent
bb056b09f5
commit
96e9ca07d5
2 changed files with 3 additions and 2 deletions
|
@ -1 +1 @@
|
||||||
npm run lint
|
npm run check
|
||||||
|
|
|
@ -28,7 +28,8 @@
|
||||||
"build:preview": "astro build && node ./server.mjs",
|
"build:preview": "astro build && node ./server.mjs",
|
||||||
"test": "echo \"Error: no test specified\" && exit 1",
|
"test": "echo \"Error: no test specified\" && exit 1",
|
||||||
"format": "prettier . --write",
|
"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"
|
"prepare": "husky"
|
||||||
},
|
},
|
||||||
"keywords": [
|
"keywords": [
|
||||||
|
|
Loading…
Reference in a new issue