# Build **Repository Path**: Supase/build ## Basic Information - **Project Name**: Build - **Description**: 如何搭建一个项目 - **Primary Language**: Unknown - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2023-11-26 - **Last Updated**: 2023-11-26 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README ## 1. 如何在git commit时自动使用prettier ``` npm install --save-dev husky lint-staged prittier npx husky install npm set- prepare "husky install" npx husky add .husky/pre-commit "npx lint-staged" ``` ```json { "husky": { "hooks": { "pre-commit": "lint-staged" } }, "lint-staged": { "**/*": "prettier --write --ignore-unknown" } } ```