-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcommitlint.config.js
More file actions
171 lines (171 loc) · 5.12 KB
/
commitlint.config.js
File metadata and controls
171 lines (171 loc) · 5.12 KB
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
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
module.exports = {
extends: ['@commitlint/config-conventional'],
rules: {
'type-enum': [
2,
'always',
[
'feat', // Nova funcionalidade
'fix', // Correção de bug
'docs', // Documentação
'style', // Formatação
'refactor', // Refatoração
'perf', // Melhoria de performance
'test', // Testes
'build', // Build system
'ci', // CI/CD
'chore', // Manutenção
'revert', // Reverter commit
'wip', // Work in progress
'hotfix', // Correção urgente
'security', // Segurança
'deps', // Dependências
'config', // Configuração
'init', // Inicialização
'release', // Release
'breaking', // Breaking changes
],
],
'type-case': [2, 'always', 'lower'],
'type-empty': [2, 'never'],
'subject-case': [2, 'always', 'lower'],
'subject-empty': [2, 'never'],
'subject-full-stop': [2, 'never', '.'],
'subject-max-length': [2, 'always', 72],
'body-leading-blank': [2, 'always'],
'body-max-line-length': [2, 'always', 100],
'footer-leading-blank': [2, 'always'],
'footer-max-line-length': [2, 'always', 100],
},
prompt: {
questions: {
type: {
description: 'Selecione o tipo de mudança que você está fazendo:',
enum: {
feat: {
description: '✨ Nova funcionalidade',
title: 'Features',
emoji: '✨',
},
fix: {
description: '🐛 Correção de bug',
title: 'Bug Fixes',
emoji: '🐛',
},
docs: {
description: '📝 Documentação',
title: 'Documentation',
emoji: '📝',
},
style: {
description: '💄 Formatação',
title: 'Styles',
emoji: '💄',
},
refactor: {
description: '♻️ Refatoração',
title: 'Code Refactoring',
emoji: '♻️',
},
perf: {
description: '⚡ Performance',
title: 'Performance Improvements',
emoji: '⚡',
},
test: {
description: '🚨 Testes',
title: 'Tests',
emoji: '🚨',
},
build: {
description: '📦 Build',
title: 'Builds',
emoji: '📦',
},
ci: {
description: '👷 CI/CD',
title: 'Continuous Integrations',
emoji: '👷',
},
chore: {
description: '🔧 Manutenção',
title: 'Chores',
emoji: '🔧',
},
revert: {
description: '⏪ Reverter',
title: 'Reverts',
emoji: '⏪',
},
wip: {
description: '🚧 Work in progress',
title: 'Work in Progress',
emoji: '🚧',
},
hotfix: {
description: '🚑 Correção urgente',
title: 'Hotfixes',
emoji: '🚑',
},
security: {
description: '🔒 Segurança',
title: 'Security',
emoji: '🔒',
},
deps: {
description: '📦 Dependências',
title: 'Dependencies',
emoji: '📦',
},
config: {
description: '⚙️ Configuração',
title: 'Configuration',
emoji: '⚙️',
},
init: {
description: '🎉 Inicialização',
title: 'Initialization',
emoji: '🎉',
},
release: {
description: '🚀 Release',
title: 'Releases',
emoji: '🚀',
},
breaking: {
description: '💥 Breaking changes',
title: 'Breaking Changes',
emoji: '💥',
},
},
},
scope: {
description: 'Indique o escopo desta mudança (opcional):',
},
subject: {
description: 'Escreva uma descrição curta e imperativa da mudança:',
},
body: {
description: 'Forneça uma descrição mais detalhada da mudança (opcional):',
},
isBreaking: {
description: 'Há mudanças que quebram a compatibilidade?',
},
breakingBody: {
description: 'Uma descrição das mudanças que quebram a compatibilidade:',
},
breaking: {
description: 'Descreva as mudanças que quebram a compatibilidade:',
},
isIssueAffected: {
description: 'Esta mudança afeta algum issue aberto?',
},
issuesBody: {
description: 'Se os issues são fechados, a chave de fechamento é necessária:',
},
issues: {
description: 'Adicione referências de issues (ex: "fix #123", "re #123"):',
},
},
},
};