Skip to content

LeeRayno/gccl

Repository files navigation

gccl Build status

git commitizen & commitlint & lint-staged

Getting started

npm i gccl -D

# OR
yarn add gccl -D

Two things have been done

  1. It just install these devDependencies commitizencommitlintlint-staged in your project
  2. add the info in your package.json and create a commitlint.config.js in your project
    {
      ...
      "config": {
        "commitizen": {
          "path": "./node_modules/cz-conventional-changelog"
        }
      },
      "husky": {
        "hooks": {
          "pre-commit": "lint-staged",
          "commit-msg": "commitlint -E HUSKY_GIT_PARAMS"
        }
      },
      "lint-staged": {
       "*.{js,vue}": [
         "eslint --fix",
         "git add"
       ]
      }
    }

About

git commitizen & commitlint & lint-staged

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published