Closed
Description
The variable used as css variable inject (vuejs/rfcs#231) will not considered as an used variable and produce a 'declared but its value is never read' error.
Example:
<script setup lang="ts">
const containerHeight = "500px";
</script>
<style scoped>
.container {
height: v-bind(containerHeight);
}
</style>
The variable containerHeight
will cause a error since it only used in the style tag.