1
- import {
2
- RuleConfigCondition ,
3
- RuleConfigSeverity ,
4
- TargetCaseType ,
5
- } from '@commitlint/types' ;
1
+ import { RuleConfigSeverity } from '@commitlint/types' ;
6
2
7
- export default {
8
- extends : [ 'gitmoji' ] ,
9
- parserPreset : '@gitmoji/parser-opts' ,
10
- rules : {
11
- 'body-leading-blank' : [ RuleConfigSeverity . Warning , 'always' ] as const ,
12
- //not setting any max-line-length since we are writing release-notes
13
- //in our chore(release) commit messages. @see release.config.ts '@semantic-release/git' configurations.
14
- //'body-max-line-length': [RuleConfigSeverity.Error, 'always', 100] as const,
15
- 'footer-leading-blank' : [ RuleConfigSeverity . Warning , 'always' ] as const ,
16
- // 'footer-max-line-length': [
17
- // RuleConfigSeverity.Error,
18
- // 'always',
19
- // 100,
20
- // ] as const,
21
- 'header-max-length' : [ RuleConfigSeverity . Error , 'always' , 100 ] as const ,
22
- 'header-trim' : [ RuleConfigSeverity . Error , 'always' ] as const ,
23
- 'subject-case' : [
24
- RuleConfigSeverity . Error ,
25
- 'never' ,
26
- [ 'sentence-case' , 'start-case' , 'pascal-case' , 'upper-case' ] ,
27
- ] as [ RuleConfigSeverity , RuleConfigCondition , TargetCaseType [ ] ] ,
28
- 'subject-empty' : [ RuleConfigSeverity . Error , 'never' ] as const ,
29
- 'subject-full-stop' : [ RuleConfigSeverity . Error , 'never' , '.' ] as const ,
30
- 'type-case' : [ RuleConfigSeverity . Error , 'always' , 'lower-case' ] as const ,
31
- 'type-empty' : [ RuleConfigSeverity . Error , 'never' ] as const ,
32
- 'type-enum' : [
33
- RuleConfigSeverity . Error ,
34
- 'always' ,
35
- [
36
- 'style' ,
37
- 'perf' ,
38
- 'prune' ,
39
- 'fix' ,
40
- 'quickfix' ,
41
- 'feature' ,
42
- 'docs' ,
43
- 'deploy' ,
44
- 'ui' ,
45
- 'init' ,
46
- 'test' ,
47
- 'security' ,
48
- 'release' ,
49
- 'lint' ,
50
- 'wip' ,
51
- 'fix-ci' ,
52
- 'downgrade' ,
53
- 'upgrade' ,
54
- 'pushpin' ,
55
- 'ci' ,
56
- 'analytics' ,
57
- 'refactoring' ,
58
- 'dep-add' ,
59
- 'dep-rm' ,
60
- 'config' ,
61
- 'i18n' ,
62
- 'typo' ,
63
- 'poo' ,
64
- 'revert' ,
65
- 'merge' ,
66
- 'dep-up' ,
67
- 'compat' ,
68
- 'mv' ,
69
- 'license' ,
70
- 'breaking' ,
71
- 'assets' ,
72
- 'access' ,
73
- 'docs-code' ,
74
- 'beer' ,
75
- 'texts' ,
76
- 'db' ,
77
- 'log-add' ,
78
- 'log-rm' ,
79
- 'contrib-add' ,
80
- 'ux' ,
81
- 'arch' ,
82
- 'iphone' ,
83
- 'clown-face' ,
84
- 'egg' ,
85
- 'see-no-evil' ,
86
- 'camera-flash' ,
87
- 'experiment' ,
88
- 'seo' ,
89
- 'types' ,
90
- 'seed' ,
91
- 'flags' ,
92
- 'animation' ,
93
- 'wastebasket' ,
94
- 'passport-control' ,
95
- 'adhesive-bandage' ,
96
- 'monocle-face' ,
97
- 'coffin' ,
98
- 'test-tube' ,
99
- 'necktie' ,
100
- 'stethoscope' ,
101
- 'bricks' ,
102
- 'technologist' ,
103
- 'chore' ,
104
- ] ,
105
- ] as [ RuleConfigSeverity , RuleConfigCondition , string [ ] ] ,
106
- }
107
- } ;
3
+ module . exports = {
4
+ extends : [ 'gitmoji' ] ,
5
+ parserPreset : '@gitmoji/parser-opts' ,
6
+ rules : {
7
+ 'body-leading-blank' : [ RuleConfigSeverity . Warning , 'always' ] ,
8
+ //not setting any max-line-length since we are writing release-notes
9
+ //in our chore(release) commit messages. @see release.config.ts '@semantic-release/git' configurations.
10
+ //'body-max-line-length': [RuleConfigSeverity.Error, 'always', 100] as const,
11
+ 'footer-leading-blank' : [ RuleConfigSeverity . Warning , 'always' ] ,
12
+ // 'footer-max-line-length': [
13
+ // RuleConfigSeverity.Error,
14
+ // 'always',
15
+ // 100,
16
+ // ] as const,
17
+ 'header-max-length' : [ RuleConfigSeverity . Error , 'always' , 100 ] ,
18
+ 'header-trim' : [ RuleConfigSeverity . Error , 'always' ] ,
19
+ 'subject-case' : [
20
+ RuleConfigSeverity . Error ,
21
+ 'never' ,
22
+ [ 'sentence-case' , 'start-case' , 'pascal-case' , 'upper-case' ] ,
23
+ ] ,
24
+ 'subject-empty' : [ RuleConfigSeverity . Error , 'never' ] ,
25
+ 'subject-full-stop' : [ RuleConfigSeverity . Error , 'never' , '.' ] ,
26
+ 'type-case' : [ RuleConfigSeverity . Error , 'always' , 'lower-case' ] ,
27
+ 'type-empty' : [ RuleConfigSeverity . Error , 'never' ] ,
28
+ 'type-enum' : [
29
+ RuleConfigSeverity . Error ,
30
+ 'always' ,
31
+ [
32
+ 'style' ,
33
+ 'perf' ,
34
+ 'prune' ,
35
+ 'fix' ,
36
+ 'quickfix' ,
37
+ 'feature' ,
38
+ 'docs' ,
39
+ 'deploy' ,
40
+ 'ui' ,
41
+ 'init' ,
42
+ 'test' ,
43
+ 'security' ,
44
+ 'release' ,
45
+ 'lint' ,
46
+ 'wip' ,
47
+ 'fix-ci' ,
48
+ 'downgrade' ,
49
+ 'upgrade' ,
50
+ 'pushpin' ,
51
+ 'ci' ,
52
+ 'analytics' ,
53
+ 'refactoring' ,
54
+ 'dep-add' ,
55
+ 'dep-rm' ,
56
+ 'config' ,
57
+ 'i18n' ,
58
+ 'typo' ,
59
+ 'poo' ,
60
+ 'revert' ,
61
+ 'merge' ,
62
+ 'dep-up' ,
63
+ 'compat' ,
64
+ 'mv' ,
65
+ 'license' ,
66
+ 'breaking' ,
67
+ 'assets' ,
68
+ 'access' ,
69
+ 'docs-code' ,
70
+ 'beer' ,
71
+ 'texts' ,
72
+ 'db' ,
73
+ 'log-add' ,
74
+ 'log-rm' ,
75
+ 'contrib-add' ,
76
+ 'ux' ,
77
+ 'arch' ,
78
+ 'iphone' ,
79
+ 'clown-face' ,
80
+ 'egg' ,
81
+ 'see-no-evil' ,
82
+ 'camera-flash' ,
83
+ 'experiment' ,
84
+ 'seo' ,
85
+ 'types' ,
86
+ 'seed' ,
87
+ 'flags' ,
88
+ 'animation' ,
89
+ 'wastebasket' ,
90
+ 'passport-control' ,
91
+ 'adhesive-bandage' ,
92
+ 'monocle-face' ,
93
+ 'coffin' ,
94
+ 'test-tube' ,
95
+ 'necktie' ,
96
+ 'stethoscope' ,
97
+ 'bricks' ,
98
+ 'technologist' ,
99
+ 'chore' ,
100
+ ] ,
101
+ ] ,
102
+ } ,
103
+ } ;
0 commit comments