Skip to content

Commit

Permalink
fix the config file
Browse files Browse the repository at this point in the history
  • Loading branch information
wjones127 authored and rtyler committed Apr 30, 2023
1 parent cf98d55 commit c7ff1a7
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 61 deletions.
58 changes: 12 additions & 46 deletions .commitlintrc.js
Original file line number Diff line number Diff line change
@@ -1,49 +1,15 @@
const Configuration = {
/*
* Resolve and load @commitlint/config-conventional from node_modules.
* Referenced packages must be installed
*/
module.exports = {
extends: ['@commitlint/config-conventional'],
/*
* Resolve and load conventional-changelog-atom from node_modules.
* Referenced packages must be installed
*/
parserPreset: 'conventional-changelog-atom',
/*
* Resolve and load @commitlint/format from node_modules.
* Referenced package must be installed
*/
formatter: '@commitlint/format',
/*
* Any rules defined here will override rules from @commitlint/config-conventional
*/
// Workaround for https://github.com/dependabot/dependabot-core/issues/5923
ignores: [(message) => /^Bumps \[.+]\(.+\) from .+ to .+\.$/m.test(message)],
rules: {
'type-enum': [2, 'always', ['foo']],
'body-max-length': [0, 'always'],
'body-max-line-length': [0, 'always'],
'footer-max-length': [0, 'always'],
'footer-max-line-length': [0, 'always'],
'header-max-length': [0, 'always'],
'scope-max-length': [0, 'always'],
'subject-max-length': [0, 'always'],
'type-max-length': [0, 'always'],
},
/*
* Functions that return true if commitlint should ignore the given message.
*/
ignores: [(commit) => commit === ''],
/*
* Whether commitlint uses the default ignore rules.
*/
defaultIgnores: true,
/*
* Custom URL to show upon failure
*/
helpUrl:
'https://github.com/conventional-changelog/commitlint/#what-is-commitlint',
/*
* Custom prompt configs
*/
prompt: {
messages: {},
questions: {
type: {
description: 'please input type:',
},
},
},
};

module.exports = Configuration;
}
15 changes: 0 additions & 15 deletions commitlint.config.js

This file was deleted.

0 comments on commit c7ff1a7

Please sign in to comment.