Skip to content

Commit aa2bac7

Browse files
committed
chore: do not run rule on Svelte 5 with runes
1 parent d4c49e7 commit aa2bac7

File tree

3 files changed

+16
-1
lines changed

3 files changed

+16
-1
lines changed

.changeset/smart-brooms-relax.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'eslint-plugin-svelte': patch
3+
---
4+
5+
chore: do not run `infinite-reactive-loop` rule on Svelte 5 with runes

packages/eslint-plugin-svelte/src/rules/infinite-reactive-loop.ts

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -378,7 +378,17 @@ export default createRule('infinite-reactive-loop', {
378378
unexpectedCall:
379379
'Possibly it may occur an infinite reactive loop because this function may update `{{variableName}}`.'
380380
},
381-
type: 'suggestion'
381+
type: 'suggestion',
382+
// Do not run this rule on Svelte 5 with runes.
383+
conditions: [
384+
{
385+
svelteVersions: ['3/4']
386+
},
387+
{
388+
svelteVersions: ['5'],
389+
runes: [false, 'undetermined']
390+
}
391+
]
382392
},
383393
create(context) {
384394
return {
Binary file not shown.

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy