Skip to content

Commit 8cf5c3c

Browse files
committed
chore: execute svelte/experimental-require-slot-types only on Svelte 3 and 4
1 parent d4c49e7 commit 8cf5c3c

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

packages/eslint-plugin-svelte/src/rules/experimental-require-slot-types.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,12 @@ export default createRule('experimental-require-slot-types', {
1414
messages: {
1515
missingSlotsInterface: `The component must define the $$Slots interface.`
1616
},
17-
type: 'suggestion'
17+
type: 'suggestion',
18+
conditions: [
19+
{
20+
svelteVersions: ['3/4']
21+
}
22+
]
1823
},
1924
create(context) {
2025
let isTs = false;

0 commit comments

Comments
 (0)