- 安装 husky (^9.1.7) 和 lint-staged (^16.2.7) - 配置 pre-commit hook 自动运行 Prettier - 创建 .prettierignore 排除不需要格式化的文件