From 96e9ca07d5c2feede1cffaeba6d247de653982e8 Mon Sep 17 00:00:00 2001 From: Ayo Ayco Date: Fri, 27 Dec 2024 16:56:12 +0100 Subject: [PATCH] chore: add check script and use in precommit --- .husky/pre-commit | 2 +- package.json | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) 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": [