-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcommitlint.config.cjs
More file actions
34 lines (34 loc) · 834 Bytes
/
Copy pathcommitlint.config.cjs
File metadata and controls
34 lines (34 loc) · 834 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
/**
* Conventional Commits via @commitlint/config-conventional.
* Validated by Husky's commit-msg hook. The rules below are the
* ones we override; everything else inherits the preset's defaults.
*
* type-enum is widened slightly from the preset to also accept
* 'a11y' (we ship accessibility-only changes often enough that
* forcing them under 'fix' or 'feat' loses signal).
*/
module.exports = {
extends: ['@commitlint/config-conventional'],
rules: {
'type-enum': [
2,
'always',
[
'a11y',
'build',
'chore',
'ci',
'docs',
'feat',
'fix',
'perf',
'refactor',
'revert',
'style',
'test',
],
],
'subject-case': [2, 'never', ['upper-case']],
'header-max-length': [2, 'always', 100],
},
};