Setup Pre Commit

在当前仓库中设置带有 lint-staged (Prettier)、类型检查和测试的 Husky pre-commit hooks。当用户想要添加 pre-commit hooks、设置 Husky、配置 lint-staged 或添加提交时格式化/类型检查/测试时使用。 (Set up Husky pre-commit hooks with lint-staged (Prettier), type checking, and tests in the current repo. Use when user wants to add pre-commit hooks, set up Husky, configure lint-staged, or add commit-time formatting/typechecking/testing.)

ninehills a58e655 3.8 KB Updated

File contents

ninehills/mattpocock-skills/tree/main/skills/misc/setup-pre-commit commit a58e6553b7

Frequently asked questions

npx skillmds@latest add ninehills/setup-pre-commit