Skip to content

Commit 544c2df

Browse files
committed
feat(svelte): add support for typing according to sveltejs/rfcs#38
1 parent a546bbc commit 544c2df

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/configs/svelte.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ export async function svelte(
5656
caughtErrors: 'none',
5757
ignoreRestSiblings: true,
5858
vars: 'all',
59-
varsIgnorePattern: '^\\$\\$Props$',
59+
varsIgnorePattern: '^(\\$\\$Props$|\\$\\$Events$|\\$\\$Slots$)',
6060
}],
6161

6262
'svelte/comment-directive': 'error',
@@ -83,7 +83,7 @@ export async function svelte(
8383

8484
'unused-imports/no-unused-vars': [
8585
'error',
86-
{ args: 'after-used', argsIgnorePattern: '^_', vars: 'all', varsIgnorePattern: '^(_|\\$\\$Props$)' },
86+
{ args: 'after-used', argsIgnorePattern: '^_', vars: 'all', varsIgnorePattern: '^(_|\\$\\$Props$|\\$\\$Events$|\\$\\$Slots$)' },
8787
],
8888

8989
...stylistic

0 commit comments

Comments
 (0)