-
Notifications
You must be signed in to change notification settings - Fork 14
Expand file tree
/
Copy pathcommitlint.config.ts
More file actions
45 lines (43 loc) · 955 Bytes
/
commitlint.config.ts
File metadata and controls
45 lines (43 loc) · 955 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
39
40
41
42
43
44
45
import type { UserConfig } from '@commitlint/types';
const Configuration: UserConfig = {
extends: ['@commitlint/config-conventional'],
parserPreset: {
parserOpts: {
headerPattern:
/^(?<type>.*\s\w*)(?:\((?<scope>.*)\))?!?:\s(?<subject>(?:(?!#).)*(?:(?!\s).))$/,
headerCorrespondence: ['type', 'scope', 'subject'],
},
},
rules: {
'type-enum': [
2,
'always',
[
'build',
'chore',
'ci',
'docs',
'feat',
'fix',
'perf',
'refactor',
'revert',
'style',
'test',
'🛠️ build',
'🛠️🚀 build', // new version release
'♻️ chore',
'⚙️ ci',
'📃 docs',
'✨ feat',
'🐞 fix',
'🚀 perf',
'🦄 refactor',
'🗑️ revert',
'🌈 style',
'🧪 test',
],
],
},
};
module.exports = Configuration;