33 lines
619 B
TypeScript
33 lines
619 B
TypeScript
|
import type { UserConfig } from '@commitlint/types'
|
||
|
import { RuleConfigSeverity } from '@commitlint/types'
|
||
|
|
||
|
const Configuration: UserConfig = {
|
||
|
extends: ['@commitlint/config-conventional'],
|
||
|
formatter: '@commitlint/format',
|
||
|
rules: {
|
||
|
'type-enum': [
|
||
|
RuleConfigSeverity.Error,
|
||
|
'always',
|
||
|
[
|
||
|
'feat',
|
||
|
'fix',
|
||
|
'perf',
|
||
|
'style',
|
||
|
'docs',
|
||
|
'test',
|
||
|
'refactor',
|
||
|
'build',
|
||
|
'ci',
|
||
|
'chore',
|
||
|
'revert',
|
||
|
'wip',
|
||
|
'workflow',
|
||
|
'types',
|
||
|
'release',
|
||
|
],
|
||
|
],
|
||
|
},
|
||
|
}
|
||
|
|
||
|
export default Configuration
|