-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcommitlint.config.js
47 lines (45 loc) · 1.08 KB
/
commitlint.config.js
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
39
40
41
42
43
44
45
46
47
const FEATURE_SCOPES = [
'components',
'cypress',
'elements',
'entities',
'fields',
'formiks',
'hooks',
'icons',
'libs',
'symbols',
'tables',
'types',
'utils',
// For everything else
'global'
]
// eslint-disable-next-line import/no-default-export
export default {
$schema: 'https://json.schemastore.org/commitlintrc',
extends: ['@commitlint/config-conventional'],
helpUrl: 'https://github.com/angular/angular/blob/main/CONTRIBUTING.md#commit',
plugins: ['selective-scope'],
rules: {
'body-max-length': [2, 'always', 'Infinity'],
'body-max-line-length': [2, 'always', 'Infinity'],
'footer-max-length': [2, 'always', 'Infinity'],
'footer-max-line-length': [2, 'always', 'Infinity'],
'header-max-length': [2, 'always', 120],
'selective-scope': [
2,
'always',
{
feat: FEATURE_SCOPES,
fix: FEATURE_SCOPES,
style: FEATURE_SCOPES
}
],
'type-enum': [
2,
'always',
['build', 'ci', 'chore', 'docs', 'feat', 'fix', 'lint', 'perf', 'refactor', 'revert', 'style', 'test']
]
}
}