Skip to content
On this page

vue/no-unused-refs

disallow unused refs

📖 Rule Details

This rule is aimed at eliminating unused refs. This rule reports refs that are defined using the ref attribute in <template> but are not used via $refs.

Note

This rule cannot be checked for use in other components (e.g. mixins, Access via $refs.x.$refs).

Now loading...

🔧 Options

Nothing.

🚀 Version

This rule was introduced in eslint-plugin-vue v7.9.0

🔍 Implementation