Skip to content

Commit 001b734

Browse files
committed
types: notification type
1 parent 5a89944 commit 001b734

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

.eslintrc.cjs

+2-1
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ module.exports = {
3131
'@typescript-eslint/no-explicit-any': 'off',
3232
'@typescript-eslint/ban-ts-comment': 'off',
3333
'svelte/no-at-html-tags': 'off',
34-
'svelte/valid-compile': 'off'
34+
'svelte/valid-compile': 'off',
35+
'@typescript-eslint/no-non-null-assertion': 'off'
3536
}
3637
};

src/Notification/index.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import Notification from './Notification.svelte';
2-
import type { ComponentConstructorOptions, SvelteComponent } from 'svelte';
2+
import type { SvelteComponent } from 'svelte';
33

44
type NotifyPlacement = 'right-top' | 'left-top' | 'right-bottom' | 'left-bottom' | 'center';
55
type NotifyType = 'info' | 'warning' | 'error' | 'success';

vertify-commit.js

+4
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,9 @@ const commitRE =
1010

1111
if (!commitRE.test(msg)) {
1212
log('error', 'commit format error');
13+
log(
14+
'error',
15+
'update|optimizate|feat|fix|docs|dx|style|refactor|perf|test|workflow|build|ci|chore|types|wip|release'
16+
);
1317
process.exit(1);
1418
}

0 commit comments

Comments
 (0)