File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed
packages/commitlint-config/src Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change 1
- import { RuleConfigSeverity } from '@commitlint/types' ;
1
+ import { type Plugin , RuleConfigSeverity } from '@commitlint/types' ;
2
2
import type { LintOptions , QualifiedRules } from '@commitlint/types' ;
3
3
4
4
import gitmojiPlugin from 'commitlint-plugin-gitmoji' ;
@@ -23,7 +23,7 @@ const rules: QualifiedRules = {
23
23
// 不允许标题空着
24
24
'subject-empty' : [ Error , 'never' ] ,
25
25
// 不允许使用句号
26
- 'subject-full-stop' : [ Error , 'never' ] ,
26
+ 'subject-full-stop' : [ Error , 'never' , '.' ] ,
27
27
// type 必须小写
28
28
'type-case' : [ Error , 'always' , 'lower-case' ] ,
29
29
// type 不能为空
@@ -37,8 +37,10 @@ const parserPreset: LintOptions = {
37
37
} ,
38
38
} ;
39
39
40
- export default {
40
+ const config : { plugins : Plugin [ ] ; parserPreset : LintOptions ; rules : QualifiedRules } = {
41
41
rules,
42
42
parserPreset,
43
43
plugins : [ gitmojiPlugin ] ,
44
44
} ;
45
+
46
+ export default config ;
You can’t perform that action at this time.
0 commit comments