forked from Commitlabs-Org/Commitlabs-Frontend
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcommitlint.config.js
More file actions
35 lines (35 loc) · 846 Bytes
/
Copy pathcommitlint.config.js
File metadata and controls
35 lines (35 loc) · 846 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
35
/**
* Commitlint configuration enforcing Conventional Commits.
* See docs/COMMIT_CONVENTION.md for accepted types and scopes.
*/
module.exports = {
extends: ['@commitlint/config-conventional'],
rules: {
// Allowed commit types (scope is optional).
'type-enum': [
2,
'always',
[
'feat',
'fix',
'docs',
'style',
'refactor',
'perf',
'test',
'build',
'ci',
'chore',
'revert',
],
],
// Keep the subject readable; do not block long bodies.
'header-max-length': [2, 'always', 100],
'body-max-line-length': [0, 'always', Infinity],
},
// Allow merge/revert commits and dependabot to bypass the rules.
ignores: [
(message) => /^Merge /.test(message),
(message) => /^Revert /.test(message),
],
};