From 7a61d3e7c8faf1d545b41ecf223b19588903efe3 Mon Sep 17 00:00:00 2001 From: Ayo Ayco Date: Fri, 27 Dec 2024 16:54:43 +0100 Subject: [PATCH] chore: add check script & 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 acf2eda..2e55e2c 100644 --- a/.husky/pre-commit +++ b/.husky/pre-commit @@ -1,2 +1,2 @@ npm run test:cli run -npm run lint +npm run check diff --git a/package.json b/package.json index 37b4a2f..0986ca1 100644 --- a/package.json +++ b/package.json @@ -10,7 +10,8 @@ "create": "node ./packages/create-mcfly", "cli": "node ./packages/cli", "test:cli": "cd packages/cli && pnpm run test", - "lint": "eslint . --config eslint.config.mjs", + "lint": "eslint . --config eslint.config.mjs --cache", + "check": "npm run format && npm run lint", "format": "prettier . --write", "prepare": "husky" },