-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.commitlintrc.js
50 lines (50 loc) · 1.34 KB
/
.commitlintrc.js
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
49
50
/** @type {import('@commitlint/types').UserConfig} */
module.exports = {
extends: ['@commitlint/config-conventional'],
rules: {
'type-enum': [
2,
'always',
[
// Changes that affect the build system or external dependencies
'build',
// Other changes that don't modify src or test files
'chore',
// Changes to our CI configuration files and scripts
'ci',
// Documentation only changes (e.g. README)
'docs',
// A new feature
'feat',
// A bug fix
'fix',
// A code change that improves performance
'perf',
// A code change that neither fixes a bug nor adds a feature
'refactor',
// Reverts a previous commit
'revert',
// Changes that do not affect the meaning of the code (white-space, formatting, missing semi-colons, etc)
'style',
// Adding missing tests or correcting existing tests
'test',
// Used for automated releases-only
'release',
],
],
'scope-enum': [
2,
'always',
[
// Dependency-related changes
'deps',
// ESLint-related changes
'eslint',
// Prettier-related changes
'prettier',
// TypeScript-related changes
'typescript',
],
],
},
};