forked from Fechin/reference
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.commitlintrc.js
More file actions
50 lines (50 loc) · 1.48 KB
/
.commitlintrc.js
File metadata and controls
50 lines (50 loc) · 1.48 KB
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
module.exports = {
extends: ['@commitlint/config-conventional'],
rules: {
'type-enum': [
2,
'always',
[
'feat', // new feature
'fix', // bug fix
'docs', // documentation update
'style', // code formatting, no logic changes
'refactor', // code refactoring
'perf', // performance optimization
'test', // add tests
'chore', // build process or auxiliary tool changes
'ci', // CI/CD related changes
'build', // build system or external dependency changes
'revert' // revert commit
]
],
'scope-enum': [
2,
'always',
[
'search', // search functionality
'theme', // theme related
'css', // style files
'js', // JavaScript files
'content', // content files
'build', // build related
'deps', // dependency updates
'config', // configuration files
'docs', // documentation
'layout', // layout templates
'widget', // components
'gulp', // Gulp tasks
'hexo', // Hexo related
'markdown', // Markdown processing
'seo', // SEO optimization
'a11y', // accessibility
'perf' // performance related
]
],
'subject-case': [2, 'never', ['start-case', 'pascal-case', 'upper-case']],
'subject-empty': [2, 'never'],
'subject-full-stop': [2, 'never', '.'],
'type-case': [2, 'always', 'lower-case'],
'type-empty': [2, 'never']
}
};