Skip to content

Commit

Permalink
chore(global): update commit lint rules
Browse files Browse the repository at this point in the history
  • Loading branch information
pddpd authored and BBSQQ committed May 23, 2023
1 parent 208401f commit 5a620fc
Showing 1 changed file with 23 additions and 1 deletion.
24 changes: 23 additions & 1 deletion commitlint.config.js
Original file line number Diff line number Diff line change
@@ -1 +1,23 @@
module.exports = { extends: ['@commitlint/config-conventional'] };
module.exports = {
extends: ['@commitlint/config-conventional'],
rules: {
'type-enum': [2, 'always', ['chore', 'ci', 'docs', 'feat', 'fix', 'refactor', 'revert', 'style', 'test']],
'scope-empty': [2, 'never'],
'scope-enum': [
2,
'always',
[
'global',
'ava',
'ava/advisor',
'ava/ckb',
'ava/data',
'ava/insight',
'ava/ntv',
'ava-react',
'ava-react/ntv',
'ava-react/insight-card',
],
],
},
};

0 comments on commit 5a620fc

Please sign in to comment.