Repository navigation
Expand file tree
/
Copy pathcommitlint.config.mjs
More file actions
59 lines (59 loc) · 1.73 KB
/
Copy pathcommitlint.config.mjs
File metadata and controls
59 lines (59 loc) · 1.73 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
// Enforces Conventional Commits so the release pipeline can auto-generate
// CHANGELOG entries from commit messages. See .gitmessage for the template
// that contributors use locally, and CONTRIBUTING.md for the convention.
export default {
extends: ['@commitlint/config-conventional'],
rules: {
'type-enum': [
2,
'always',
[
'feat',
'fix',
'refactor',
'perf',
'docs',
'build',
'ci',
'test',
'chore',
'style',
'revert',
],
],
'scope-enum': [
2,
'always',
[
'cli',
'vsc-plugin',
'jetbrains-plugin',
// Cross-plugin work: protocol-level changes that have to land
// in both VS Code and JetBrains plugins in lock-step.
'both-plugins',
'shared',
// apps/box — the codeam-box rescue-fleet runtime image (Docker only;
// no TypeScript). Its own scope, distinct from 'cli', since it
// ships/versions independently (a container image, not part of the
// npm client release line).
'box',
// plugin/openai — the static ChatGPT/Codex plugin package (manifest,
// mcp.json, skills, assets). No TypeScript; versions independently
// of the npm client release line.
'plugin',
// Repo-wide test infrastructure not scoped to one app (real-Docker
// integration tests, shared fixtures, the CI wiring for a new gate).
'test',
'workflow',
'meta',
'deps',
'deps-dev',
'release',
'changelog',
],
],
'subject-case': [0],
'body-max-line-length': [1, 'always', 100],
'footer-max-line-length': [1, 'always', 100],
},
};