-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcommitlint.config.js
More file actions
38 lines (34 loc) · 881 Bytes
/
Copy pathcommitlint.config.js
File metadata and controls
38 lines (34 loc) · 881 Bytes
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
/** @type {import('@commitlint/types').UserConfig} */
export default {
extends: ['@commitlint/config-conventional'],
rules: {
// scope is required: feat(auth): ... not just feat: ...
'scope-empty': [2, 'never'],
// 100 char limit on the full subject line
'header-max-length': [2, 'always', 200],
// allowed types (action)
'type-enum': [
2,
'always',
[
'feat',
'fix',
'chore',
'refactor',
'docs',
'test',
'perf',
'style',
'build',
'ci',
'revert',
],
],
// enforce lowercase on type and scope
'type-case': [2, 'always', 'lower-case'],
'scope-case': [2, 'always', 'lower-case'],
// subject must not be empty and not end with a period
'subject-empty': [2, 'never'],
'subject-full-stop': [2, 'never', '.'],
},
}