GithubHelp home page GithubHelp logo

ontid-team / nodejs-eslint-prettier-husky Goto Github PK

View Code? Open in Web Editor NEW
0.0 0.0 0.0 167 KB

Eslint Prettier Husky template for NodeJs

Shell 14.39% Dockerfile 50.12% TypeScript 35.50%
eslint husky nodejs prettier template template-nodejs

nodejs-eslint-prettier-husky's Introduction

Eslint Prettier Husky template for NodeJs

code style: prettier Commitizen friendly Conventional Commits

Notes

1. Why is my git pre-commit hook not executable by default?

  • Because files are not executable by default; they must be set to be executable.
  chmod ug+x .husky/*
  chmod ug+x .git/hooks/*

2. Git commit

  npm run commit

3. Project release

  npm run release:patch // Patch release 0.1.0 -> 0.1.1
  npm run release:minor // Minor release 0.1.1 -> 0.2.0
  npm run release:major // Major release 0.2.0 -> 1.0.0

4. Project Structure

Name Description
src/ Source files
src/config/ Application configuration
src/core/
src/db/ DB connect, migration, seed and etc.
src/decorators/
src/helpers/
src/libs/ Library source code like a logger, schema, i18n and etc.
src/middleware/ Contains all the middleware that we need
src/modules/
src/providers/
src/templates/
src/utility-types/
src/utils/ Common functions that would be used repetitively
dist/ Compiled source files will be placed here
tests/ Test cases will be placed here
tests/unit/ Unit Test cases will be placed here
tests/integration/ API routes (Integration) Test cases will be placed here

5. PullRequest

  • This PR implements new feature, fix bug, or some other changes
  • If PR is not ready to review mark it as Draft
  • All commits in this PR should be by conventional-commits
  • Title of the PR should have issue(s) identifier(s) ("BOX-123 Example title of PR")
  • Don’t use deprecated or vulnerable versions of Express
  • Use TLS
  • Use Helmet
  • Use cookies securely
  • Prevent brute-force attacks against authorization
  • Ensure your dependencies are secure
  • Avoid other known vulnerabilities
  • Additional considerations

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.