-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcommitlint.config.ts
56 lines (55 loc) · 1.89 KB
/
commitlint.config.ts
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
import { RuleConfigCondition, RuleConfigSeverity } from "@commitlint/types";
export default {
parserPreset: "conventional-changelog-conventionalcommits",
rules: {
"type-enum": [
RuleConfigSeverity.Error,
"always",
[
":tada:", // Initial commit
":bookmark:", // Version tag
":sparkles:", // New feature
":bug:", // Bugfix
":card_index:", // Metadata
":books:", // Documentation
":bulb:", // Documenting source code
":racehorse:", // Performance
":lipstick:", // Cosmetic
":rotating_light:", // Tests
":white_check_mark:", // Adding a test
":heavy_check_mark:", // Make a test pass
":zap:", // General update
":art:", // Improve format/structure
":hammer:", // Refactor code
":fire:", // Removing code/files
":green_heart:", // Continuous Integration
":lock:", // Security
":arrow_up:", // Upgrading dependencies
":arrow_down:", // Downgrading dependencies
":shirt:", // Lint
":alien:", // Translation
":pencil:", // Text
":ambulance:", // Critical hotfix
":rocket:", // Deploying stuff
":apple:", // Fixing on MacOS
":penguin:", // Fixing on Linux
":checkered_flag:", // Fixing on Windows
":construction:", // Work in progress
":construction_worker:", // Adding CI build system
":chart_with_upwards_trend:", // Analytics or tracking code
":heavy_minus_sign:", // Removing a dependency
":heavy_plus_sign:", // Adding a dependency
":whale:", // Docker
":wrench:", // Configuration files
":package:", // Package.json in JS
":twisted_rightwards_arrows:", // Merging branches
":hankey:", // Bad code / need improv.
":rewind:", // Reverting changes
":boom:", // Breaking changes
":ok_hand:", // Code review changes
":wheelchair:", // Accessibility
":truck:", // Move/rename repository
],
] as [RuleConfigSeverity, RuleConfigCondition, string[]],
},
};