-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcommitlint.config.ts
More file actions
34 lines (33 loc) · 1.07 KB
/
commitlint.config.ts
File metadata and controls
34 lines (33 loc) · 1.07 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
export enum RuleConfigSeverity {
Disabled = 0,
Warning = 1,
Error = 2,
}
module.exports = {
rules: {
'body-leading-blank': [RuleConfigSeverity.Error, 'always'],
'body-max-line-length': [RuleConfigSeverity.Error, 'always', 100],
'footer-leading-blank': [RuleConfigSeverity.Error, 'always'],
'footer-max-line-length': [RuleConfigSeverity.Error, 'always', 100],
'header-max-length': [RuleConfigSeverity.Error, 'always', 100],
'header-full-stop': [RuleConfigSeverity.Error, 'never', '.'],
'subject-empty': [RuleConfigSeverity.Error, 'never'],
'type-case': [RuleConfigSeverity.Error, 'always', 'kebab-case'],
'type-empty': [RuleConfigSeverity.Error, 'never'],
'type-enum': [
RuleConfigSeverity.Error,
'always',
[
'feat',
'fix',
'refactor',
'chore',
'docs',
'lib',
'ci',
'style',
'tests',
],
],
},
}