Skip to content
On this page


disallow this usage in a beforeRouteEnter method

📖 Rule Details

Because lack of this in the beforeRouteEnter (docs). This behavior isn't obvious, so it's pretty easy to make a TypeError. Especially during some refactor.

Now loading...
Now loading...

🔧 Options


🔇 When Not To Use It

When vue-router is not installed.

📚 Further Reading

vue-router - in-component-guards

🚀 Version

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

🔍 Implementation