Skip to content

Commit 41cb645

Browse files
committed
build: change commitlint config to ts file
1 parent d12bbac commit 41cb645

File tree

3 files changed

+16
-4
lines changed

3 files changed

+16
-4
lines changed

.npmignore

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ node_modules
3131
# Eslint
3232
.eslintignore
3333
.eslintrc.js
34-
commitlint.config.js
34+
commitlint.config.ts
3535
.prettierignore
3636
.prettierrc
3737

commitlint.config.js

-3
This file was deleted.

commitlint.config.ts

+15
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)