3.0.25 • Published 3 years ago

@dnb-hugo/commitlint-config v3.0.25

Weekly downloads
64
License
MIT
Repository
github
Last release
3 years ago

lernaCodacy Badge

DNB-Hugo / commitlint-config

Commitlint configuration used in dnb-hugo projects.

Rules

This configuration extends on conventional-changelog/commitlint with the following changes:

  • Types are of one of: content, docs, feat, fix, layouts, refactor, test, chore, wip
  • Maximum line length is 100 characters

Setup

npm install --save-dev @dnb-hugo/commitlint-config

Then in package.json add the following lines:

{
  "scripts": {
    "commitlint": "commitlint --from=HEAD~1"
  }
}

Then add .commitlintrc.js with the following content:

module.exports = {
  "extends": [
    "@dnb-hugo/commitlint-config"
  ]
};

Lastly add a commit-msg hook to your git repository:

#!/bin/bash

npx --no-install commitlint --edit $1

Usage

If you set up the git hook for commit messages you are good to go. Every time you add a commit it will check the message and complain if it's not right.

You can always manually check a commit with npm run commitlint.

If you wish to check a particular commit, you can do so by running npm run commitlint -- $COMMITHASH.

Rules

... to be written ...

All configuration packages

PackageNotes
browserslist-configBrowserslist configuration used in dnb-hugo projects.
commitlint-configCommitlint configuration used in dnb-hugo projects.
eslint-configESLint configuration used in dnb-hugo projects.
remark-configRemark configuration used in dnb-hugo projects.
standard-version-configStandard Version configuration used in dnb-hugo projects.
stylelint-configStylelint configuration used in dnb-hugo projects.
textlint-configTextlint configuration used in dnb-hugo projects.
3.0.25

3 years ago

3.0.24

3 years ago

3.0.21

3 years ago

3.0.16

3 years ago

3.0.17

3 years ago

3.0.13

3 years ago

3.0.1

3 years ago

3.0.0

3 years ago

2.0.25

3 years ago

2.0.17

3 years ago

2.0.18

3 years ago

2.0.24

3 years ago

2.0.13

3 years ago

2.0.14

3 years ago

2.0.11

3 years ago

2.0.23

3 years ago

2.0.12

3 years ago

2.0.20

3 years ago

2.0.10

3 years ago

2.0.9

3 years ago

2.0.5

3 years ago

2.0.7

3 years ago

2.0.6

3 years ago

2.0.8

3 years ago

2.0.3

3 years ago

2.0.2

3 years ago

2.0.4

3 years ago

2.0.1

3 years ago

2.0.0

3 years ago

1.1.2

3 years ago