3.5.9 • Published 2 years ago

@dnb-org/commitlint-config v3.5.9

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

@dnb-org/commitlint-config

Commitlint configuration used in dnb-org projects.

Installation

Use npm to install this package as development dependency:

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

Configuration

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-org/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-org/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 ...

DNB-Org/Configurations

A collection of configurations for website development at DNB Org.

PackageDescription
babel-configBabel configuration
bootstrap-configBootstrap configuration
browserslist-configBrowserslist configuration
commitlint-configCommitlint configuration
cssnano-configCSSnano configuration
cypress-configCypress configuration
eslint-configESLint configuration
postcss-configPostCSS configuration
prettier-configPrettier configuration
remark-configReMark configuration
standard-version-configStandard Version configuration
stylelint-configStyleLint configuration
textlint-configTextLint configuration
webpack-configWebpack configuration
toolsTools
3.5.9

2 years ago

3.5.8

2 years ago

3.5.7

2 years ago

3.4.8

2 years ago

3.5.6

2 years ago

3.4.7

2 years ago

3.5.5

2 years ago

3.4.6

2 years ago

3.5.4

2 years ago

3.4.5

2 years ago

3.4.9

2 years ago

3.5.3

2 years ago

3.5.2

2 years ago

3.5.1

2 years ago

3.5.0

2 years ago

3.4.10

2 years ago

3.4.11

2 years ago

3.4.4

2 years ago

3.4.3

2 years ago

3.4.2

2 years ago

3.4.0

3 years ago

3.4.1

3 years ago

3.3.9

3 years ago

3.3.3

3 years ago

3.3.0

3 years ago

3.2.22

3 years ago

3.2.8

3 years ago

3.2.7

3 years ago

3.2.0

3 years ago

3.1.0

3 years ago

3.0.25

3 years ago