vue/jsx-uses-vars
eslint-plugin-vue
No autofixRecommended
eslint.config.js
import vue from "eslint-plugin-vue";
export default [
{
plugins: { vue },
rules: {
"vue/jsx-uses-vars": "error",
},
},
];No code example for this rule
The linters' documentation does not include one we could extract.
vue/jsx-uses-vars
eslint-plugin-vue
import vue from "eslint-plugin-vue";
export default [
{
plugins: { vue },
rules: {
"vue/jsx-uses-vars": "error",
},
},
];Oxlint does not have this rule.
Biome does not have this rule.
Disallow variables used in JSX to be incorrectly marked as unused
Disallow unused variable definitions of v-for directives or scope attributes
Disallow registering components that are not used inside templates
Disallow the use of reserved names in component definitions