Skip to content

Commit

Permalink
maint/build ~ refactor commitlint commit tag specification (lowerca…
Browse files Browse the repository at this point in the history
…se from upper)
  • Loading branch information
rivy committed Jan 17, 2021
1 parent ff7ad32 commit 2c7ac3a
Showing 1 changed file with 29 additions and 54 deletions.
83 changes: 29 additions & 54 deletions .commitlint.config.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,32 @@
// spell-checker:ignore () commitLint

const commitTags = [
'Add',
'Added',
'Bugfix',
'Build',
'Change',
'Changed',
'Chore',
'Docs',
'Feat',
'Fix',
'Fixed',
'Fixes',
'Maint',
'Merge',
'Perf',
'Refactor',
'Revert',
'Style',
'Test',
'Tests',
'Update',
'Updated',
'Upkeep',
'WIP',
];

module.exports = {
extends: ['@commitlint/config-conventional'],
parserPreset: './.commitlint.parser-preset.js',
Expand All @@ -20,59 +48,6 @@ module.exports = {
'scope-case': [2, 'always', ['lower-case', 'upper-case']],
'subject-case': [0],
'type-case': [2, 'always', ['lower-case', 'sentence-case']],
'type-enum': [
2,
'always',
[
'add',
'added',
'bugfix',
'build',
'change',
'changed',
'chore',
'docs',
'feat',
'fix',
'fixed',
'fixes',
'maint',
'merge',
'perf',
'refactor',
'revert',
'style',
'test',
'tests',
'update',
'updated',
'upkeep',
'wip',
'Add',
'Added',
'Bugfix',
'Build',
'Change',
'Changed',
'Chore',
'Docs',
'Feat',
'Fix',
'Fixed',
'Fixes',
'Maint',
'Merge',
'Perf',
'Refactor',
'Revert',
'Style',
'Test',
'Tests',
'Update',
'Updated',
'Upkeep',
'WIP',
],
],
'type-enum': [2, 'always', [...commitTags.map((v) => v.toLowerCase()), ...commitTags]],
},
};

0 comments on commit 2c7ac3a

Please sign in to comment.