Skip to content

Commit

Permalink
fix: lint commit message (#1684)
Browse files Browse the repository at this point in the history
  • Loading branch information
alecarn authored May 31, 2024
1 parent f5c4390 commit 02fcf07
Show file tree
Hide file tree
Showing 4 changed files with 1,059 additions and 4 deletions.
15 changes: 15 additions & 0 deletions commitlint.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
import { RuleConfigSeverity, UserConfig } from '@commitlint/types';

const Configuration: UserConfig = {
extends: ['@commitlint/config-conventional'],
formatter: '@commitlint/format',
ignores: [(commit) => commit === ''],
defaultIgnores: true,
rules: {
'body-max-line-length': [RuleConfigSeverity.Warning, 'always', 120]
},
helpUrl:
'https://github.com/conventional-changelog/commitlint/#what-is-commitlint'
};

module.exports = Configuration;
1 change: 1 addition & 0 deletions git-hooks/commit-msg
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
npx commitlint --edit $1
Loading

0 comments on commit 02fcf07

Please sign in to comment.