Skip to content

Commit c7ff1a7

Browse files
wjones127rtyler
authored andcommitted
fix the config file
1 parent cf98d55 commit c7ff1a7

File tree

2 files changed

+12
-61
lines changed

2 files changed

+12
-61
lines changed

.commitlintrc.js

Lines changed: 12 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -1,49 +1,15 @@
1-
const Configuration = {
2-
/*
3-
* Resolve and load @commitlint/config-conventional from node_modules.
4-
* Referenced packages must be installed
5-
*/
1+
module.exports = {
62
extends: ['@commitlint/config-conventional'],
7-
/*
8-
* Resolve and load conventional-changelog-atom from node_modules.
9-
* Referenced packages must be installed
10-
*/
11-
parserPreset: 'conventional-changelog-atom',
12-
/*
13-
* Resolve and load @commitlint/format from node_modules.
14-
* Referenced package must be installed
15-
*/
16-
formatter: '@commitlint/format',
17-
/*
18-
* Any rules defined here will override rules from @commitlint/config-conventional
19-
*/
3+
// Workaround for https://github.com/dependabot/dependabot-core/issues/5923
4+
ignores: [(message) => /^Bumps \[.+]\(.+\) from .+ to .+\.$/m.test(message)],
205
rules: {
21-
'type-enum': [2, 'always', ['foo']],
6+
'body-max-length': [0, 'always'],
7+
'body-max-line-length': [0, 'always'],
8+
'footer-max-length': [0, 'always'],
9+
'footer-max-line-length': [0, 'always'],
10+
'header-max-length': [0, 'always'],
11+
'scope-max-length': [0, 'always'],
12+
'subject-max-length': [0, 'always'],
13+
'type-max-length': [0, 'always'],
2214
},
23-
/*
24-
* Functions that return true if commitlint should ignore the given message.
25-
*/
26-
ignores: [(commit) => commit === ''],
27-
/*
28-
* Whether commitlint uses the default ignore rules.
29-
*/
30-
defaultIgnores: true,
31-
/*
32-
* Custom URL to show upon failure
33-
*/
34-
helpUrl:
35-
'https://github.com/conventional-changelog/commitlint/#what-is-commitlint',
36-
/*
37-
* Custom prompt configs
38-
*/
39-
prompt: {
40-
messages: {},
41-
questions: {
42-
type: {
43-
description: 'please input type:',
44-
},
45-
},
46-
},
47-
};
48-
49-
module.exports = Configuration;
15+
}

commitlint.config.js

Lines changed: 0 additions & 15 deletions
This file was deleted.

0 commit comments

Comments
 (0)