-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathcommitlint.config.ts
More file actions
106 lines (104 loc) · 4.32 KB
/
Copy pathcommitlint.config.ts
File metadata and controls
106 lines (104 loc) · 4.32 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
import type { UserConfig } from "@commitlint/types";
const Configuration: UserConfig = {
extends: ["@commitlint/config-conventional"],
formatter: "@commitlint/format",
rules: {
"type-enum": [
2,
"always",
[
"feat", // New feature
"fix", // Bug fix
"docs", // Documentation only changes
"style", // Formatting, no code changes (whitespace, semicolons, etc.)
"refactor", // Code changes that neither fix a bug nor add a feature
"perf", // Performance improvement
"test", // Adding or correcting tests
"build", // Build system or dependency changes
"ci", // CI/CD configuration changes
"chore", // Other non-src/test changes (e.g. tooling, cleanup)
"revert", // Reverts a previous commit
"wip", // Work in progress
"init", // Initial setup or commit
"merge", // Merge branches
"release", // Version bumps or release automation changes
"hotfix", // Quick fix in production
"deps", // Dependency updates
"security", // Security improvements/fixes
"config", // Configuration file changes
"infra", // Infrastructure-related changes
"ux", // User experience improvements
"accessibility", // Accessibility-related updates (a11y)
],
],
"scope-enum": [
2,
"always",
[
"auth", // Authentication/login/session
"api", // Backend endpoints or API interactions
"ai", // AI-related changes
"agent", // Agent-specific changes
"db", // Database schemas/queries
"ui", // User interface components
"layout", // Layout structure or visual changes
"components", // Shared UI components
"hooks", // Custom React/Vue hooks
"style", // CSS/SASS/SCSS changes
"utils", // Utility or helper modules
"config", // Configuration files (tsconfig, eslint, prettier)
"deps", // Dependency upgrades, removals, installs
"setup", // Project initialization/setup
"env", // Environment variables or .env changes
"build", // Bundlers, compilers, Webpack/Vite/Parcel
"ci", // CI/CD pipelines or scripts
"lint", // Lint rules or formatting configuration
"test", // Test suites / test framework setup
"release", // Version bumps or release automation changes
"types", // TypeScript types/interfaces definitions
"docs", // Documentation (markdown, READMEs)
"public", // Public assets (images, fonts, static files)
"providers", // Context providers or global app providers
"middleware", // Server/API middleware logic
"i18n", // Localization/internationalization
"security", // Security-related changes
"performance", // Performance-specific code/optimizations
"pages", // Application pages or views
"models", // ORM or DB models
"services", // Service layer logic
"validators", // Schema or form validation
"schemas", // API or DB schemas
"constants", // Constants or enums
"interfaces", // TypeScript interfaces
"readme", // README updates
"changelog", // CHANGELOG updates
"assets", // Media and static files
"images", // Image files
"fonts", // Font assets
"theme", // Theming or design tokens
"colors", // Color definitions
"spacing", // Spacing/layout tokens
"docker", // Docker-related changes
"k8s", // Kubernetes config
"terraform", // IaC using Terraform
"nginx", // Reverse proxy or web server config
"monitoring", // Logging and monitoring setup
"logging", // Log-related code
"permissions", // Role/permission updates
"roles", // User roles
"secrets", // Secret management
"encryption", // Encryption logic
"thirdparty", // 3rd-party service integration
"payment", // Payment processing logic
"analytics", // Analytics/tracking code
"web3", // Blockchain/web3 logic
"scripts", // Project or utility scripts
"core", // Core application logic
"init", // Bootstrapping/init logic
"temp", // Temporary/experimental code
"other", // Miscellaneous or uncategorized changes
],
],
},
};
export default Configuration;