Skip to content

Commit

Permalink
feat(svelte): add support for typing according to sveltejs/rfcs#38 (#450
Browse files Browse the repository at this point in the history
)
  • Loading branch information
kelvindecosta committed Apr 15, 2024
1 parent 7d275a6 commit e075210
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 e075210

Please sign in to comment.