-
Notifications
You must be signed in to change notification settings - Fork 0
/
commitlint.config.js
103 lines (102 loc) · 2.5 KB
/
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
import { RuleConfigSeverity } from '@commitlint/types';
module.exports = {
extends: ['gitmoji'],
parserPreset: '@gitmoji/parser-opts',
rules: {
'body-leading-blank': [RuleConfigSeverity.Warning, 'always'],
//not setting any max-line-length since we are writing release-notes
//in our chore(release) commit messages. @see release.config.ts '@semantic-release/git' configurations.
//'body-max-line-length': [RuleConfigSeverity.Error, 'always', 100] as const,
'footer-leading-blank': [RuleConfigSeverity.Warning, 'always'],
// 'footer-max-line-length': [
// RuleConfigSeverity.Error,
// 'always',
// 100,
// ] as const,
'header-max-length': [RuleConfigSeverity.Error, 'always', 100],
'header-trim': [RuleConfigSeverity.Error, 'always'],
'subject-case': [
RuleConfigSeverity.Error,
'never',
['sentence-case', 'start-case', 'pascal-case', 'upper-case'],
],
'subject-empty': [RuleConfigSeverity.Error, 'never'],
'subject-full-stop': [RuleConfigSeverity.Error, 'never', '.'],
'type-case': [RuleConfigSeverity.Error, 'always', 'lower-case'],
'type-empty': [RuleConfigSeverity.Error, 'never'],
'type-enum': [
RuleConfigSeverity.Error,
'always',
[
'style',
'perf',
'prune',
'fix',
'quickfix',
'feature',
'docs',
'deploy',
'ui',
'init',
'test',
'security',
'release',
'lint',
'wip',
'fix-ci',
'downgrade',
'upgrade',
'pushpin',
'ci',
'analytics',
'refactoring',
'dep-add',
'dep-rm',
'config',
'i18n',
'typo',
'poo',
'revert',
'merge',
'dep-up',
'compat',
'mv',
'license',
'breaking',
'assets',
'access',
'docs-code',
'beer',
'texts',
'db',
'log-add',
'log-rm',
'contrib-add',
'ux',
'arch',
'iphone',
'clown-face',
'egg',
'see-no-evil',
'camera-flash',
'experiment',
'seo',
'types',
'seed',
'flags',
'animation',
'wastebasket',
'passport-control',
'adhesive-bandage',
'monocle-face',
'coffin',
'test-tube',
'necktie',
'stethoscope',
'bricks',
'technologist',
'chore',
],
],
},
};