diff --git a/.husky/pre-commit b/.husky/pre-commit index 3867a0f..0ad376d 100644 --- a/.husky/pre-commit +++ b/.husky/pre-commit @@ -1 +1 @@ -npm run lint +npm run check diff --git a/package.json b/package.json index 0b1c50f..169d3d1 100644 --- a/package.json +++ b/package.json @@ -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": [