Skip to content

Variable usage checking for css variable injection #335

Closed
@caxerx

Description

@caxerx

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions