vuejs / rfcs

RFCs for substantial changes / feature additions to Vue core
4.85k stars 551 forks source link

`<style>` should be taken into account for `no-unused-vars` check when using `<script setup>` #305

Closed wenfangdu closed 3 years ago

wenfangdu commented 3 years ago

ESLint rules like no-unused-vars. We will need a replacement rule in eslint-plugin-vue that takes both the <script setup> and <template> expressions into account.

Due to SFC State-driven CSS Variables (v-bind in