Skip to content

Instantly share code, notes, and snippets.

@sergiorgiraldo
Last active November 22, 2019 12:58
Show Gist options
  • Save sergiorgiraldo/2f5ca5280c760721a83df48e42aaf90d to your computer and use it in GitHub Desktop.
Save sergiorgiraldo/2f5ca5280c760721a83df48e42aaf90d to your computer and use it in GitHub Desktop.
CommitLint
  1. npm init

  2. npm install --save-dev @commitlint/cli
    npm install --save-dev @commitlint/config-conventional
    npm install --save-dev @commitlint/prompt-cli

  3. notepad commitlint.config.js

  module.exports = {extends: ['@commitlint/config-conventional']};
  1. notepad package.json
  {
  	"scripts": {
  		"commit": "commit"
  	}
  }
  1. notepad.gitignore
  # Logs
  logs

  # Dependency directories
  node_modules/
  1. git add.
    npm run commit
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment