-
Notifications
You must be signed in to change notification settings - Fork 0
/
commitlint.config.js
26 lines (26 loc) · 951 Bytes
/
commitlint.config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
export default {
extends: ['@commitlint/config-conventional'],
rules: {
'type-enum': [
2,
'always',
[
'feat', // new feature
'fix', // bug fix
'docs', // documentation
'style', // formatting, missing semi colons, etc
'refactor', // refactoring code
'perf', // performance improvements
'test', // adding tests
'build', // changes that affect the build system or external dependencies
'ci', // changes to CI configuration files and scripts
'chore', // other changes that don't modify src or test files
'RELEASING' // add your custom type here
],
],
// loosen checking rules to allow changesets "RELEASING: Startcase..."
// style commits created by "changeset version" to pass checks
'type-case': [2, 'always', ['lower-case', 'upper-case']],
'subject-case': [2, 'always', ['lower-case', 'sentence-case']]
},
};