-
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathcommitlint.config.ts
More file actions
20 lines (18 loc) · 805 Bytes
/
commitlint.config.ts
File metadata and controls
20 lines (18 loc) · 805 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
/*
* Commitlint configuration file to enforce
* formatting and styling rules on commit messages.
*/
import type { UserConfig } from '@commitlint/types';
import { RuleConfigSeverity } from '@commitlint/types';
const Configuration: UserConfig = {
extends: ['@commitlint/config-conventional'],
rules: {
'type-enum': [RuleConfigSeverity.Error, 'always', ['fix', 'refactor', 'feature', 'revert', 'release', 'enh']],
'type-case': [RuleConfigSeverity.Error, 'always', 'lower-case'],
'subject-case': [RuleConfigSeverity.Error, 'always', 'sentence-case'],
'subject-empty': [RuleConfigSeverity.Error, 'never'],
'subject-max-length': [RuleConfigSeverity.Error, 'always', 72],
'body-max-line-length': [RuleConfigSeverity.Error, 'always', 100],
},
};
module.exports = Configuration;