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" },