0.2.1 • Published 4 years ago

@yokots/git-hooks v0.2.1

Weekly downloads
-
License
MIT
Repository
github
Last release
4 years ago

USAGE

  • npm i @yokots/git-hooks -D

  • Add the following fields to your package.json

    {
      "husky": {
        "hooks": {
          "commit-msg": "commitlint -E HUSKY_GIT_PARAMS",
          "pre-commit": "lint-staged",
          "prepare-commit-msg": "exec < /dev/tty && git cz --hook || true"
        }
      },
      "commitlint": {
        "extends": ["@commitlint/config-conventional"]
      },
      "lint-staged": {
        "*.{css,scss}": ["stylelint --fix", "git add"],
        "*.ts": ["tslint --fix", "git add"]
      },
      "config": {
        "commitizen": {
          "path": "cz-conventional-changelog"
        }
      }
    }
  • If you use in angular project, ng add @yokots/git-hooks

Resources