-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcommitlint.config.js
More file actions
39 lines (38 loc) · 1.3 KB
/
commitlint.config.js
File metadata and controls
39 lines (38 loc) · 1.3 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
// Canvas Learning System - Commitlint Configuration
// Enforces conventional commits with EPIC scope tracking
//
// Format: type(scope): description
// Examples:
// feat(32): add FSRS-4.5 algorithm integration
// fix(31): resolve vault sync stale detection
// refactor(epic-30): extract shared FSRS fixtures
// chore: update lefthook configuration
// test(34): add multimodal upload E2E tests
module.exports = {
extends: ['@commitlint/config-conventional'],
rules: {
// Types allowed
'type-enum': [2, 'always', [
'feat', // New feature
'fix', // Bug fix
'refactor', // Code refactoring (no behavior change)
'test', // Test additions/changes
'docs', // Documentation only
'chore', // Build, tooling, dependencies
'style', // Formatting, whitespace
'perf', // Performance improvement
'ci', // CI/CD changes
'revert', // Revert a commit
]],
// Scope is optional but encouraged
'scope-empty': [0, 'never'],
// Max header length
'header-max-length': [2, 'always', 100],
// Subject must not be empty
'subject-empty': [2, 'never'],
// Type must not be empty
'type-empty': [2, 'never'],
// Subject should be lowercase
'subject-case': [1, 'always', 'lower-case'],
},
};