forked from wormhole-foundation/wormhole-sdk-ts
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcommitlint.config.js
More file actions
32 lines (32 loc) · 1.2 KB
/
commitlint.config.js
File metadata and controls
32 lines (32 loc) · 1.2 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
module.exports = {
extends: ["@commitlint/config-conventional"],
rules: {
"type-enum": [
2,
"always",
[
"feat", // New feature
"fix", // Bug fix
"docs", // Documentation only changes
"style", // Changes that do not affect the meaning of the code
"refactor", // Code change that neither fixes a bug nor adds a feature
"perf", // Code change that improves performance
"test", // Adding missing tests or correcting existing tests
"chore", // Changes to the build process or auxiliary tools
"revert", // Reverts a previous commit
"build", // Changes that affect the build system or external dependencies
"ci", // Changes to CI configuration files and scripts
],
],
"scope-empty": [2, "always"], // Scopes must be empty (no scopes allowed)
"subject-case": [2, "never", ["start-case", "pascal-case", "upper-case"]],
"header-max-length": [2, "always", 100],
},
ignores: [
// Allow fixup! and squash! commits for rebasing
commit => commit.startsWith("fixup!"),
commit => commit.startsWith("squash!"),
// Optional: Allow WIP commits
commit => commit.startsWith("WIP:"),
],
};