Skip to content

Commit 0c0198f

Browse files
committed
update
1 parent a003664 commit 0c0198f

File tree

2 files changed

+15
-1
lines changed

2 files changed

+15
-1
lines changed

.changeset/stupid-monkeys-peel.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 `no-dupe-on-directives` rule on Svelte 5 with runes

packages/eslint-plugin-svelte/src/rules/no-dupe-on-directives.ts

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,16 @@ export default createRule('no-dupe-on-directives', {
1616
duplication:
1717
'This `on:{{type}}` directive is the same and duplicate directives in L{{lineNo}}.'
1818
},
19-
type: 'problem'
19+
type: 'problem',
20+
conditions: [
21+
{
22+
svelteVersions: ['3/4']
23+
},
24+
{
25+
svelteVersions: ['5'],
26+
runes: [false, 'undetermined']
27+
}
28+
]
2029
},
2130
create(context) {
2231
const sourceCode = getSourceCode(context);

0 commit comments

Comments
 (0)