Skip to content

Commit

Permalink
chore(commitlint): optimize linting config
Browse files Browse the repository at this point in the history
  • Loading branch information
spywhere committed Nov 24, 2023
1 parent 7445e82 commit dce90e7
Showing 1 changed file with 0 additions and 29 deletions.
29 changes: 0 additions & 29 deletions commitlint.config.js
Original file line number Diff line number Diff line change
@@ -1,37 +1,8 @@
module.exports = {
extends: ['@commitlint/config-conventional'],
rules: {
'body-leading-blank': [1, 'always'],
'footer-leading-blank': [1, 'always'],
'header-max-length': [2, 'always', 72],
'scope-case': [2, 'always', 'lower-case'],
'scope-empty': [2, 'never'],
'subject-case': [
2,
'never',
['sentence-case', 'start-case', 'pascal-case', 'upper-case']
],
'subject-empty': [2, 'never'],
'subject-full-stop': [2, 'never', '.'],
'type-case': [2, 'always', 'lower-case'],
'type-empty': [2, 'never'],
'type-enum': [
2,
'always',
[
'build',
'chore',
'ci',
'docs',
'feat',
'feature',
'fix',
'perf',
'refactor',
'revert',
'style',
'test'
]
]
}
};

0 comments on commit dce90e7

Please sign in to comment.