generated from upptime/upptime
-
Notifications
You must be signed in to change notification settings - Fork 0
/
commitlint.config.js
97 lines (97 loc) · 2.14 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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
module.exports = {
extends: ["@commitlint/config-conventional"],
parserPreset: {
parserOpts: {
headerPattern: /^(:\w+:|[\p{Emoji}])\s(\w+)/u,
headerCorrespondence: ["type", "subject"],
},
},
rules: {
"subject-case": [2, "always", "sentence-case"],
"type-enum": [
2,
"always",
[
":adhesive_bandage:",
":age_facing_up:",
":alembic:",
":alien:",
":ambulance:",
":arrow_down:",
":arrow_up:",
":art:",
":bank:",
":bento:",
":bookmark:",
":books:",
":boom:",
":bug:",
":bulb:",
":busts_in_silhouette:",
":busts_in_silhouette:",
":camera-flash:",
":card_file_box:",
":chart_with_upwards_trend:",
":checkered_flag:",
":children_crossing:",
":clown_face:",
":construction:",
":construction_worker:",
":egg:",
":fast_forward:",
":fire:",
":gem:",
":globe_with_meridians:",
":green_ale:",
":green_heart:",
":hankey:",
":heavy_minus_sign:",
":heavy_plus_sign:",
":iphone:",
":label:",
":leaves:",
":lipstick:",
":lock:",
":loud-sound:",
":loud_sound:",
":mag:",
":memo:",
":microscope:",
":mute:",
":mute:",
":newspaper:",
":ok_hand:",
":package:",
":page_facing_up:",
":pencil2:",
":pencil:",
":penguin:",
":pushpin:",
":recycle:",
":rewind:",
":ribbon:",
":robot:",
":rocket:",
":rotating_light:",
":see-no-evil:",
":sparkles:",
":speech_balloon:",
":tada:",
":tractor:",
":triangular_flag_on_post:",
":truck:",
":twisted_rightwards_arrows:",
":whale:",
":wheel-of-dharma:",
":wheelchair:",
":white_check_mark:",
":wrench:",
":zap:",
"🟨",
"🟩",
"🟥",
],
],
"header-max-length": [2, "always", 75],
},
};