-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcommitlint.config.ts
More file actions
26 lines (23 loc) · 760 Bytes
/
Copy pathcommitlint.config.ts
File metadata and controls
26 lines (23 loc) · 760 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
import { UserConfig } from '@commitlint/types';
import { RuleConfigSeverity } from '@commitlint/types';
import { AllowedPrefixes, RuleConfigExecution, RuleConfigName } from './commitlint.static';
const CommitConfig: UserConfig = {
extends: ['@commitlint/config-conventional'],
helpURL: 'https://www.conventionalcommits.org/',
plugins: [],
rules: {
// Allow only a few prefixes as commit starting
[RuleConfigName.typeEnum]: [
RuleConfigSeverity.Error,
RuleConfigExecution.always,
AllowedPrefixes,
],
// Ensure that the header message is in lower case
[RuleConfigName.headerCase]: [
RuleConfigSeverity.Error,
RuleConfigExecution.always,
'lower-case',
],
},
};
export default CommitConfig;