-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcommitlint.config.ts
More file actions
38 lines (33 loc) · 1.36 KB
/
commitlint.config.ts
File metadata and controls
38 lines (33 loc) · 1.36 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
import { type UserConfig, RuleConfigSeverity } from '@commitlint/types';
const config: UserConfig = {
extends: ['@commitlint/config-conventional'],
rules: {
'type-enum': [
RuleConfigSeverity.Error,
'always',
['ci', 'docs', 'feat', 'fix', 'refactor'],
],
'type-case': [RuleConfigSeverity.Error, 'always', 'lower-case'],
'type-empty': [RuleConfigSeverity.Error, 'never'],
'type-max-length': [RuleConfigSeverity.Error, 'always', 10],
'type-min-length': [RuleConfigSeverity.Error, 'always', 3],
'scope-enum': [
RuleConfigSeverity.Error,
'always',
['root', 'backend', 'web', 'libs'],
],
'scope-empty': [RuleConfigSeverity.Error, 'never'],
'scope-max-length': [RuleConfigSeverity.Error, 'always', 20],
'scope-min-length': [RuleConfigSeverity.Error, 'always', 2],
'subject-case': [RuleConfigSeverity.Error, 'always', ['lower-case']],
'subject-empty': [RuleConfigSeverity.Error, 'never'],
'subject-full-stop': [RuleConfigSeverity.Error, 'never', '.'],
'subject-max-length': [RuleConfigSeverity.Error, 'always', 50],
'subject-min-length': [RuleConfigSeverity.Error, 'always', 5],
'references-empty': [RuleConfigSeverity.Disabled, 'always'],
},
defaultIgnores: true,
helpUrl:
'https://github.com/conventional-changelog/commitlint/#what-is-commitlint',
};
export default config;