Skip to content

vue/no-unused-vars ​

Remove the unused variable or prefix with _ to indicate intentional

PropertyValue
CategoryDead Code
Default Severitywarning
Confidencehigh
FixableNo
Engineeslint-template
Sincev1.0.0
Frameworksvue, nuxt

Why it matters ​

Remove the unused variable or prefix with _ to indicate intentional

How to fix ​

Review the finding and update the code according to best practices below.

Agent Guidance ​

Remove the unused v-for/slot-scope variable, or prefix it with an underscore if the position is required.


Rule source: vue/no-unused-vars

Released under the MIT License.