Skip to content
On this page

vue/require-expose

require declare public properties using expose

  • 💡 Some problems reported by this rule are manually fixable by editor suggestions.

📖 Rule Details

This rule enforces the component to explicitly declare the exposed properties to the component using expose. You can use expose to control the internal properties of a component so that they cannot be referenced externally.

The expose API was officially introduced in Vue 3.2.

Now loading...
Now loading...
Now loading...
Now loading...

🔧 Options

Nothing.

📚 Further Reading

🚀 Version

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

🔍 Implementation