Skip to content

Commit

Permalink
feat: allow numbers and booleans in template expressions in svelte fi…
Browse files Browse the repository at this point in the history
…les too
  • Loading branch information
AlexAegis committed Mar 23, 2024
1 parent b54f178 commit e4ef258
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions packages/eslint-config-svelte/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,13 @@ export default {
allowAsThisParameter: true,
},
],
'@typescript-eslint/restrict-template-expressions': [
'error',
{
allowBoolean: true,
allowNumber: true,
},
],
'@typescript-eslint/no-unused-vars': [
'warn',
{ varsIgnorePattern: '$$', argsIgnorePattern: '_' }, // To let $$Slot be defined
Expand Down

0 comments on commit e4ef258

Please sign in to comment.