Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork698
Closed
Description
Please describe what the rule should do:
In Vue you can usetest($event.detail) as well asevent => test(event.detail) to achieve the same thing. 1. should be preferred.
test($event.detail)
<Component @click="test($event.detail)"/>
event => test(event.detail)
<Component @click="event=>test(event.detail)"/>
What category should the rule belong to?
[X] Enforces code style (layout)
[ ] Warns about a potential error (problem)
[ ] Suggests an alternate way of doing something (suggestion)
[ ] Other (please specify:)
Provide 2-3 code examples that this rule should warn about:
<Component @click="event=>test(event.detail)"/>
<Component @click="({detail })=>test(detail)"/>