1+ // @ts -check
2+
3+ /**
4+ * @type {import('devmoji/lib/config-options').TDevmoji[] }
5+ */
6+ const devmoji = [
7+ {
8+ code : "feat" ,
9+ description : "a new feature" ,
10+ emoji : "sparkles" ,
11+ } ,
12+ {
13+ code : "fix" ,
14+ description : "a bug fix" ,
15+ emoji : "bug" ,
16+ } ,
17+ {
18+ code : "docs" ,
19+ description : "documentation only changes" ,
20+ emoji : "books" ,
21+ } ,
22+ {
23+ code : "style" ,
24+ description :
25+ "changes that do not affect the meaning of the code (white-space, formatting, missing semi-colons, etc)" ,
26+ emoji : "art" ,
27+ } ,
28+ {
29+ code : "refactor" ,
30+ description : "a code change that neither fixes a bug nor adds a feature" ,
31+ emoji : "recycle" ,
32+ } ,
33+ {
34+ code : "perf" ,
35+ description : "a code change that improves performance" ,
36+ emoji : "zap" ,
37+ } ,
38+ {
39+ code : "test" ,
40+ description : "adding missing or correcting existing tests" ,
41+ emoji : "rotating_light" ,
42+ } ,
43+ {
44+ code : "chore" ,
45+ description :
46+ "changes to the build process or auxiliary tools and libraries such as documentation generation" ,
47+ emoji : "wrench" ,
48+ } ,
49+ {
50+ code : "chore-release" ,
51+ description : "code deployment or publishing to external repositories" ,
52+ emoji : "rocket" ,
53+ } ,
54+ {
55+ code : "chore-deps" ,
56+ description : "add or delete dependencies" ,
57+ emoji : "link" ,
58+ } ,
59+ {
60+ code : "build" ,
61+ description : "changes related to build processes" ,
62+ emoji : "package" ,
63+ } ,
64+ {
65+ code : "ci" ,
66+ description : "updates to the continuous integration system" ,
67+ emoji : "construction_worker" ,
68+ } ,
69+ {
70+ code : "release" ,
71+ description : "code deployment or publishing to external repositories" ,
72+ emoji : "rocket" ,
73+ } ,
74+
75+ {
76+ code : "security" ,
77+ gitmoji : "lock" ,
78+ } ,
79+ {
80+ code : "i18n" ,
81+ gitmoji : "globe_with_meridians" ,
82+ } ,
83+ {
84+ code : "breaking" ,
85+ gitmoji : "boom" ,
86+ } ,
87+ {
88+ code : "config" ,
89+ gitmoji : "wrench" ,
90+ emoji : "gear" ,
91+ } ,
92+ {
93+ code : "add" ,
94+ emoji : "heavy_plus_sign" ,
95+ description : "add something" ,
96+ } ,
97+ {
98+ code : "remove" ,
99+ emoji : "heavy_minus_sign" ,
100+ description : "remove something" ,
101+ } ,
102+ {
103+ code : "revert" ,
104+ emoji : "rewind" ,
105+ description : "revert changes" ,
106+ } ,
107+ ] ;
108+
109+ /**
110+ * Based on the default configuration from devmoji.
111+ *
112+ * @see https://github.com/folke/devmoji/blob/master/src/config-options-defaults.ts
113+ *
114+ * @type {import('devmoji/lib/config-options').ConfigOptions }
115+ */
116+ const config = {
117+ types : devmoji . map ( ( devmoji ) => devmoji . code ) ,
118+ devmoji,
119+ } ;
120+
121+ module . exports = config ;
0 commit comments