Skip to content

Commit 3ed6a4f

Browse files
committed
build: migrate commitlint.config to ts
1 parent 7130107 commit 3ed6a4f

2 files changed

Lines changed: 15 additions & 3 deletions

File tree

commitlint.config.js

Lines changed: 0 additions & 3 deletions
This file was deleted.

commitlint.config.ts

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
import type { UserConfig } from '@commitlint/types'
2+
3+
export default {
4+
extends: ['@commitlint/config-angular'],
5+
rules: {
6+
'subject-max-length': [2, 'always', 120],
7+
'scope-enum': [2, 'always', []],
8+
'scope-empty': [2, 'always'],
9+
'type-enum': [
10+
2,
11+
'always',
12+
['build', 'ci', 'docs', 'feat', 'fix', 'perf', 'refactor', 'release', 'revert', 'style', 'test'],
13+
],
14+
},
15+
} satisfies UserConfig

0 commit comments

Comments
 (0)