-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcommitlint.config.ts
More file actions
46 lines (44 loc) · 1.1 KB
/
Copy pathcommitlint.config.ts
File metadata and controls
46 lines (44 loc) · 1.1 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
import type { UserConfig } from "@commitlint/types";
import { commitTypes } from "./release.config.ts";
const Configuration: UserConfig = {
extends: ["@commitlint/config-conventional"],
rules: {
"type-enum": [2, "always", commitTypes.map((t) => t.type)],
"subject-case": [2, "never", ["start-case", "pascal-case", "upper-case"]],
"subject-empty": [2, "never"],
"subject-full-stop": [2, "never", "."],
"header-max-length": [2, "always", 100],
"scope-enum": [
2,
"always",
[
// Interfaces (src/api-server.ts, src/cli.ts, src/mcp-server.ts, src/index.ts)
"api",
"cli",
"mcp",
"index",
// src/ module directories
"commands",
"core",
"generated",
"integration",
"schemas",
"scripts",
"strategies",
"types",
"utils",
// Non-src areas
"docs",
"examples",
// Tooling and process
"build",
"ci",
"deps",
"deps-dev",
"lint",
"release",
],
],
},
};
export default Configuration;