Skip to content

Commit

Permalink
chore: change commitlint js to cjs
Browse files Browse the repository at this point in the history
  • Loading branch information
v1rtl committed Jun 28, 2021
1 parent b7457f3 commit ed82eca
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions commitlint.config.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
// eslint-disable-next-line @typescript-eslint/no-var-requires
const defaultConfig = require('@commitlint/config-conventional')

module.exports = {
extends: ['@commitlint/config-conventional'],
rules: {
...defaultConfig.rules,
'type-enum': [
2,
'always',
['fix', 'test', 'tooling', 'refactor', 'revert', 'example', 'docs', 'format', 'feat', 'chore']
]
}
}

0 comments on commit ed82eca

Please sign in to comment.