-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcommitlint.config.ts
More file actions
68 lines (61 loc) · 2.34 KB
/
commitlint.config.ts
File metadata and controls
68 lines (61 loc) · 2.34 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
import type { UserConfig } from '@commitlint/types';
const config: UserConfig = {
extends: ['@commitlint/config-conventional'],
prompt: {
settings: {
enableMultipleScopes: false,
},
questions: {
type: {
description: "Select the type of change you're committing:",
enum: {
feat: {
description: 'Introduce a new feature or capability',
title: '🚀 Feature',
emoji: '🚀',
},
fix: {
description: 'Resolve a bug or incorrect behavior',
title: '🧩 Bug Fix',
emoji: '🧩',
},
docs: {
description: 'Add or update documentation',
title: '📝 Documentation',
emoji: '📝',
},
style: {
description: 'Code changes that do not affect behavior (formatting, whitespace)',
title: '🎨 Style',
emoji: '🎨',
},
refactor: {
description: 'Improve code structure without changing external behavior',
title: '🧠 Refactor',
emoji: '🧠',
},
test: {
description: 'Add, update, or improve tests',
title: '🧪 Test',
emoji: '🧪',
},
chore: {
description: 'Maintenance tasks (build system, dependencies, tooling)',
title: '⚙️ Chore',
emoji: '⚙️',
},
},
},
scope: {
description: 'Specify the scope of this change (e.g., auth, ui, api)',
},
subject: {
description: 'Short, imperative summary (max 50 chars, e.g., Add login validation)',
},
body: {
description: 'Detailed explanation of what changed, why, and how (optional)',
},
},
},
};
export default config;