@eliasnorrby/commitlint-config v2.3.37
Commitlint Config
My commitlint config. Right now it only extends
@commitlint/config-conventional, but that could change.
:warning: Subject to change in the future.
Setup
Using npx
Run the following command to install and configure commitlint
npx @eliasnorrby/commitlint-configThis will run a setup script, adding this package to devDependencies,
intalling husky, populating the husky.hooks.commit-msg field in
package.json, setting the git commit template to .gitmessage and writing the
config to commitlint.config.js.
--no-install
Run setup with the --no-install flag to avoid installing this package as a
dependency. Your commitling.config.js will instead extend
@commitlint/config-conventional.
Manually
Install the package
npm i -D @eliasnorrby/commitlint-configand add the configuration to commitlint.config.js.
commitlint.config.js
module.exports = require('@eliasnorrby/commitlint-config')Overriding settings
Just add your overrides to commitlint.config.js:
module.exports = {
...require('@eliasnorrby/commitlint-config'),
rules: {
'header-max-length': [0, 'always', 72],
},
}5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago