Package detail

@repodog/commitlint-config

badbatch454MIT19.0.4

The Repodog Commitlint config module.

readme

@repodog/commitlint-config

The Repodog Commitlint config.

npm version License: MIT

Install package and peer dependencies

# terminal
npm install @repodog/commitlint-config @commitlint/cli husky --save-dev

Initialize husky

# terminal
npx husky init
echo "npx --no -- commitlint --edit \$1" > .husky/commit-msg

Use package

// commitlint.config.cjs
module.exports = {
  extends: ['@repodog/commitlint-config'],
};

Make .husky/ executable

If you get the error The '.husky/commit-msg' hook was ignored because it's not set as executable. when trying to create a commit, please run the command chmod ug+x .husky/* from your project root and then create the commit again.