-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcommitlint.config.mjs
More file actions
48 lines (43 loc) · 1.02 KB
/
commitlint.config.mjs
File metadata and controls
48 lines (43 loc) · 1.02 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
/** @type {import('@commitlint/types').UserConfig} */
const config = {
extends: ['@commitlint/config-conventional'],
rules: {
// Header max 72 chars (sweet spot: readable in git log & GitHub)
'header-max-length': [2, 'always', 72],
// Scope is optional, but must be from the list below if provided
'scope-enum': [
2,
'always',
[
// --- Packages ---
'core',
'db',
'auth',
'config',
'storage',
'sync',
// --- Apps ---
'dash',
'cron',
// --- Domain Areas ---
'org',
'member',
'event',
'attendance',
'finance',
'notification',
'parishioner',
// --- Infra & Tooling ---
'ci',
'deps',
'release',
'docs',
],
],
'scope-case': [2, 'always', 'kebab-case'],
'scope-empty': [0], // optional — no error if scope is omitted
'body-case': [0],
'body-max-line-length': [0],
},
};
export default config;