nextjs-prisma-boilerplate
nextjs-prisma-boilerplate copied to clipboard
Added Git Hooks for Linting
What does it do?
- Added .npmrc and .nvmrc file to lock the node engine
- Added Husky to run the Git hooks before committing and pushing.
-
.husky/pre-commit
is added to run theyarn lint
before any commit is added -
.husky/pre-push
runsyarn build
to make code can successfully build before push to git.
-
Type of change
Please delete options that are not relevant.
- [ ] Bug fix (non-breaking change which fixes an issue)
- [ ] New feature (non-breaking change which adds functionality)
- [ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
- [ ] This change requires a documentation update
Checklist:
- [ ] I have performed a self-review of my own code
- [ ] I have commented my code, particularly in hard-to-understand areas
- [ ] Updated documentation (if applicable)
- [ ] Added tests that prove my fix is effective or that my feature works
- [ ] Make sure the app compiles in both dev and prod mode by running
yarn dev
andyarn build
- [ ] New and existing unit, integration, and e2e tests pass locally with my changes
- [ ] My changes generate no new warnings (browser console and Node.js terminal)
- [ ] There are no new linting
yarn lint
and typingyarn types
errors - [ ] Make sure the code is formatted by running
yarn format