2.16.0 • Published 2 years ago
@batatinha-delivery/commitlint-config v2.16.0
@batatinha-delivery/commitlint-config
This package provides iFood's commitlint as an extensible shared config.
It extends angular preset with some customizations.
Installation
Install @batatinha-delivery/commitlint-config
:
$ npm i @batatinha-delivery/commitlint-config -D
Add a commitlint.config.js file using the preset:
module.exports = {
extends: ["@batatinha-delivery"],
};
Customizations
scope-case
Scope must be in kebab-case.
Value: [2, "always", "kebab-case"]
,
subject-case
Subject must be in Sentence case.
Value: [2, "always", "sentence-case"]
header-max-length
Header must have up to 100 characters.
Value: [2, "always", 100]
type-enum
Type must be one of the conventional-commit-types: feat
, fix
, docs
,style
, refactor
, perf
, test
, build
, ci
, chore
, revert
.