Skip to content

Commit

Permalink
chore: run no-useless-children-snippet rule on Svelte 5 only
Browse files Browse the repository at this point in the history
  • Loading branch information
baseballyama committed Jan 19, 2025
1 parent 7596287 commit a59e539
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/swift-clocks-turn.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'eslint-plugin-svelte': patch
---

chore: run `no-useless-children-snippet` rule on Svelte 5 only
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,12 @@ export default createRule('no-useless-children-snippet', {
messages: {
uselessSnippet: 'Found an unnecessary children snippet.'
},
type: 'suggestion'
type: 'suggestion',
conditions: [
{
svelteVersions: ['5']
}
]
},
create(context) {
return {
Expand Down

0 comments on commit a59e539

Please sign in to comment.