-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcommitlint.config.js
More file actions
42 lines (41 loc) · 1.4 KB
/
commitlint.config.js
File metadata and controls
42 lines (41 loc) · 1.4 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
// Conventional Commits configuration for InferaDB
// See: https://www.conventionalcommits.org/
// See: https://github.com/conventional-changelog/commitlint
export default {
extends: ["@commitlint/config-conventional"],
rules: {
// Types allowed in commit messages
"type-enum": [
2,
"always",
[
"feat", // New feature (minor version bump)
"fix", // Bug fix (patch version bump)
"docs", // Documentation only
"style", // Formatting, whitespace (no code change)
"refactor", // Code change that neither fixes nor adds
"perf", // Performance improvement (patch version bump)
"test", // Adding or correcting tests
"build", // Build system or external dependencies
"ci", // CI configuration
"chore", // Other changes that don't modify src or test
"dx",
"ai",
"imp",
"release",
],
],
// Scope is optional but must be lowercase if provided
"scope-case": [2, "always", "lower-case"],
// Subject must start with lowercase
"subject-case": [2, "always", "lower-case"],
// No period at the end of subject
"subject-full-stop": [2, "never", "."],
// Subject cannot be empty
"subject-empty": [2, "never"],
// Type cannot be empty
"type-empty": [2, "never"],
// Header max length (type + scope + subject)
"header-max-length": [2, "always", 100],
},
};