nextjs-prisma-boilerplate icon indicating copy to clipboard operation
nextjs-prisma-boilerplate copied to clipboard

Added Git Hooks for Linting

Open ArchTaqi opened this issue 2 years ago • 0 comments

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 the yarn lint before any commit is added
    • .husky/pre-push runs yarn 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 and yarn 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 typing yarn types errors
  • [ ] Make sure the code is formatted by running yarn format

ArchTaqi avatar Oct 13 '22 20:10 ArchTaqi