pre commit (#1119)
<!-- This is an auto-generated description by cubic. --> ## Summary by cubic Adds an explicit Husky pre-commit setup to run the formatter and linter before each commit. Replaces the auto-run prepare hook with a manual npm run init-precommit command. - **Migration** - Run npm run init-precommit once in your repo to install the pre-commit hook. <!-- End of auto-generated description by cubic. -->
This commit is contained in:
@@ -33,6 +33,16 @@ npm run db:push
|
||||
npm start
|
||||
```
|
||||
|
||||
## Setup
|
||||
|
||||
If you'd like to contribute a pull request, we highly recommend setting the pre-commit hooks which will run the formatter and linter before each git commit. This is a great way of catching issues early on without waiting to run the GitHub Actions for your pull requet.
|
||||
|
||||
Simply run this once in your repo:
|
||||
|
||||
```sh
|
||||
npm run init-precommit
|
||||
```
|
||||
|
||||
## Testing
|
||||
|
||||
### Unit tests
|
||||
|
||||
Reference in New Issue
Block a user