-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcommitlint.config.js
More file actions
33 lines (32 loc) · 947 Bytes
/
commitlint.config.js
File metadata and controls
33 lines (32 loc) · 947 Bytes
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
// Copyright (c) 2017-2020 Christopher Johnston
// Copyright (c) 2025-present Viktor Rognas
// Licensed under MIT License
module.exports = {
extends: ['@commitlint/config-conventional'],
rules: {
// Subject line max 50 characters
'header-max-length': [2, 'always', 50],
// Body line max 72 characters
'body-max-line-length': [2, 'always', 72],
// Allow custom scopes
'scope-case': [0],
// Type enum
'type-enum': [
2,
'always',
[
'feat', // New feature
'fix', // Bug fix
'perf', // Performance improvement
'refactor', // Code refactoring
'test', // Add/update tests
'docs', // Documentation
'chore', // Maintenance
'style', // Code style (formatting)
'ci', // CI/CD changes
'build', // Build system changes
'revert', // Revert previous commit
],
],
},
};