-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcommitlint.config.mjs
More file actions
24 lines (24 loc) · 784 Bytes
/
commitlint.config.mjs
File metadata and controls
24 lines (24 loc) · 784 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
/**
* @type {import('@commitlint/types').UserConfig}
*/
export default {
extends: ['@commitlint/config-conventional'],
plugins: ['commitlint-plugin-cspell'],
rules: {
'cspell/type': [2, 'always'],
'cspell/scope': [2, 'always'],
'cspell/subject': [2, 'always'],
'cspell/body': [2, 'always'],
'cspell/footer': [2, 'always'],
'scope-case': [2, 'always', ['lower-case', 'upper-case']],
'subject-empty': [2, 'never'],
'subject-case': [2, 'never', ['sentence-case', 'start-case', 'pascal-case', 'upper-case']],
'type-case': [2, 'always', 'lower-case'],
'type-empty': [2, 'never'],
'type-enum': [
2,
'always',
['feat', 'fix', 'docs', 'style', 'refactor', 'perf', 'test', 'build', 'ci', 'chore', 'revert'],
],
},
};