New Rule: svelte/no-dupe-on-directives
and svelte/no-dupe-use-directives
#304
Labels
svelte/no-dupe-on-directives
and svelte/no-dupe-use-directives
#304
Motivation
We can define any number of
on:
anduse:
directives with the same name, but duplicate directives with the exact same name and expression are probably a mistake.I would like to find it in the new rule.
See also sveltejs/svelte#8048.
Description
The new rule reports
on:
directives with exactly the same name and expression, anduse:
directives with exactly the same name and expression.Examples
Additional comments
As for
on:
, maybe some users want to report even if the expression is different. I think we can add an option to the rule in that case.The text was updated successfully, but these errors were encountered: