conventional-changelog-lint-config-angular v1.0.0
Lint your commits, angular-style
conventional-changelog-lint-config-angular
Shareable conventional-changelog-lint config enforcing the angular commit convention.
Installation
Fetch it with npm
npm install --save-dev conventional-changelog-lint-config-angular conventional-changelog-lintSee version 0.2 for config conforming to Angular 1 conventions:
npm install --save-dev conventional-changelog-lint-config-angular@0.2Usage
Install and use as conventional-changelog-lint shareable config.
// .conventional-changelog-lintrc
{
"extends": ["angular"]
}⇨ See conventional-changelog-lint/shareable-config for details
Rules
Problems
The following rules are considered problems for conventional-changelog-lint-config-angular and will yield a non-zero exit code when not met.
type-enum
- condition:
typeis found in value - rule:
always value
[ 'build', 'chore', 'ci', 'docs', 'feat', 'fix', 'perf', 'refactor', 'revert', 'style', 'test' ]
type-case
- description:
typeis in casevalue - rule:
always - value
'lowerCase'
type-empty
- condition:
typeis empty - rule:
never
scope-case
- condition:
scopeis in casevalue - rule:
always
'lowerCase'subject-empty
- condition:
subjectis empty - rule:
never
subject-full-stop
- condition:
subjectends withvalue - rule:
never - value
'.'header-max-length
- condition:
headerhasvalueor less characters - rule:
always - value
72Warnings
The following rules are considered warnings for conventional-changelog-lint-config-angular and will print warning messages when not met.
body-leading-blank
- condition: Body begins with blank line
- rule:
always
lang
- condition:
subjectis of languagevalue - rule:
always - value
engWildcards
The following rules identify commits that pass linting by skipping all other rules.
merge
- condition:
headermatchespattern - pattern:
/^(Merge pull request)|(Merge (.*?) into (.*?)|(Merge (.*?) branch (.*?))$)/
release
- condition:
headermatchespattern - pattern:
always - pattern:
/^\\d+.\\d+.\\d+\n?$/
revert
- condition:
headermatchespattern - pattern:
always - pattern:
/^revert: (.*)/
⇨ See conventional-changelog-lint/shareable-config for available rules
Copyright 2016 by Mario Nebl and contributors. Released under the MIT license.