You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Porting vue/no-unused-emit-declarations (#6306) runs into a structural point: JS lint rules see the <script> / <script setup> block, while template markup is handled separately (biome_js_analyze vs biome_html_analyze). A rule that only inspects the script cannot see $emit('…') (or equivalent) in <template>, so it can false-positive when an emit is only used from the template.
Questions for maintainers
Is there an existing way for a JS rule to account for template-side emit usage that we should use?
If not, is a script-only implementation acceptable for now, with the limitation documented in the rule’s rustdoc?
A short answer on (1)/(2) would unblock implementation scope for the issue above.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Porting
vue/no-unused-emit-declarations(#6306) runs into a structural point: JS lint rules see the<script>/<script setup>block, while template markup is handled separately (biome_js_analyzevsbiome_html_analyze). A rule that only inspects the script cannot see$emit('…')(or equivalent) in<template>, so it can false-positive when an emit is only used from the template.Questions for maintainers
A short answer on (1)/(2) would unblock implementation scope for the issue above.
Beta Was this translation helpful? Give feedback.
All reactions