Skip to content

Commit

Permalink
chore: run require-event-dispatcher-types rule on Svelte 3/4 only (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
baseballyama authored Jan 22, 2025
1 parent 722b36c commit f16729f
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/nine-walls-hammer.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'eslint-plugin-svelte': patch
---

chore: run `require-event-dispatcher-types` rule on Svelte 3/4 only
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,12 @@ export default createRule('require-event-dispatcher-types', {
messages: {
missingTypeParameter: `Type parameters missing for the \`createEventDispatcher\` function call.`
},
type: 'suggestion'
type: 'suggestion',
conditions: [
{
svelteVersions: ['3/4']
}
]
},
create(context) {
let isTs = false;
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"svelte": "^3.0.0 || ^4.0.0"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"svelte": "^3.0.0 || ^4.0.0"
}

0 comments on commit f16729f

Please sign in to comment.