Skip to content

HDNET/commitlint-config

Repository files navigation

HDNET commitlint-config

This packages defines the strict implementation of the HDNET Commit Message Guidelines from the HDNET Standard Recommendations (HSR-3) as npm package using commitlint through a shareable config.

Getting started

  1. Make sure you setup node >= 14

  2. Install dependencies

$ npm i -D @commitlint/cli @hdnet/commitlint-config
  1. Create commitlint config (i.e. commitlint.config.js) and extend from @hdnet/commitlint-config:
module.exports = {
    extends: '@hdnet',

    parserPreset: {
        parserOpts: {
            // replace "PROJECT-" with your issue prefix
            issuePrefixes: ['PROJECT-'],
        },
    },
}
  1. Add commitlint to you git hook configuration (i.e. using husky)

Contribute

To setup current node version, you can use nvm (in this project a .nvmrc file is maintained).

About

HDNET commitlint-config, implementing HSR-3

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •