-
-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathcommitlint.config.js
More file actions
34 lines (32 loc) · 735 Bytes
/
commitlint.config.js
File metadata and controls
34 lines (32 loc) · 735 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
34
const { RuleConfigSeverity } = require('@commitlint/types')
/** @type {import("@commitlint/types").UserConfig} */
const Configuration = {
/*
* Resolve and load @commitlint/config-conventional from node_modules.
* Referenced packages must be installed
*/
extends: ['@commitlint/config-conventional'],
/*
* Any rules defined here will override rules from @commitlint/config-conventional
*/
rules: {
'type-enum': [
RuleConfigSeverity.Error,
'always',
[
'chore',
'ci',
'docs',
'feat',
'fix',
'perf',
'refactor',
'revert',
'style',
'test',
'release',
],
],
},
}
module.exports = Configuration