馃悰 vue formatter does not recognize vue magic #2771
Labels
A-Analyzer
Area: analyzer
A-Project
Area: project
L-JavaScript
Language: JavaScript and super languages
S-Enhancement
Status: Improve an existing feature
Environment information
What happened?
I'm trying to use Biome on Vue3 files and I get some
lint/correctness/noUnusedVariables
errors ondefineProps
,defineEmits
,defineExpose
.Per the vue docs, these are not actually global functions but macros for the vue compiler.
Expected result
These (and other vue "magic") should not throw an error or there should be some recommendation for how to handle this gracefully.
My current workaround is to put this in the
biome.json
file. Note this does not detect whether it's in a<script setup>
nor the targetedvue
version, both of which affect the existence of these macros.Code of Conduct
The text was updated successfully, but these errors were encountered: