-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcommitlint.config.ts
More file actions
40 lines (40 loc) · 1.14 KB
/
commitlint.config.ts
File metadata and controls
40 lines (40 loc) · 1.14 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
export default {
extends: ["@commitlint/config-conventional"],
rules: {
"type-enum": [
2,
"always",
[
"feat", // New feature
"fix", // Bug fix
"docs", // Documentation changes
"style", // Code style changes (formatting, etc)
"refactor", // Code refactoring
"test", // Adding or updating tests
"chore", // Maintenance tasks
"perf", // Performance improvements
"ci", // CI/CD changes
"build", // Build system changes
"revert", // Revert a commit
],
],
"scope-enum": [
2,
"always",
[
"app", // Application-level changes
"ui", // UI components
"api", // API/adapters
"hooks", // Custom hooks
"utils", // Utility functions
"types", // TypeScript types
"test", // Tests
"config", // Configuration
"deps", // Dependencies
"release", // Release commits from semantic-release
],
],
"subject-case": [0], // Allow any case (we'll enforce manually)
"body-max-line-length": [0], // Allow long lines for detailed explanations
},
};