Skip to content

Commit

Permalink
feat(svelte): add support for typing according to sveltejs/rfcs#38
Browse files Browse the repository at this point in the history
  • Loading branch information
kelvindecosta committed Apr 14, 2024
1 parent a546bbc commit 544c2df
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/configs/svelte.ts
Expand Up @@ -56,7 +56,7 @@ export async function svelte(
caughtErrors: 'none',
ignoreRestSiblings: true,
vars: 'all',
varsIgnorePattern: '^\\$\\$Props$',
varsIgnorePattern: '^(\\$\\$Props$|\\$\\$Events$|\\$\\$Slots$)',
}],

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

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

...stylistic
Expand Down

0 comments on commit 544c2df

Please sign in to comment.