Skip to content

Commit 647e88e

Browse files
committed
🚨 chore: fix lint
1 parent 809cbc9 commit 647e88e

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

packages/commitlint-config/src/index.ts

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { RuleConfigSeverity } from '@commitlint/types';
1+
import { type Plugin, RuleConfigSeverity } from '@commitlint/types';
22
import type { LintOptions, QualifiedRules } from '@commitlint/types';
33

44
import gitmojiPlugin from 'commitlint-plugin-gitmoji';
@@ -23,7 +23,7 @@ const rules: QualifiedRules = {
2323
// 不允许标题空着
2424
'subject-empty': [Error, 'never'],
2525
// 不允许使用句号
26-
'subject-full-stop': [Error, 'never'],
26+
'subject-full-stop': [Error, 'never', '.'],
2727
// type 必须小写
2828
'type-case': [Error, 'always', 'lower-case'],
2929
// type 不能为空
@@ -37,8 +37,10 @@ const parserPreset: LintOptions = {
3737
},
3838
};
3939

40-
export default {
40+
const config: { plugins: Plugin[]; parserPreset: LintOptions; rules: QualifiedRules } = {
4141
rules,
4242
parserPreset,
4343
plugins: [gitmojiPlugin],
4444
};
45+
46+
export default config;

0 commit comments

Comments
 (0)