From 3a682b9232bcfee6fbc4f80d3646dc4ff969de53 Mon Sep 17 00:00:00 2001 From: Ayo Ayco Date: Fri, 27 Dec 2024 16:52:19 +0100 Subject: [PATCH] chore: add check script & use in precommit --- .husky/pre-commit | 2 +- package.json | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) 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 6e7d681..0360e2e 100644 --- a/package.json +++ b/package.json @@ -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/",