# vue/no-this-in-before-route-enter
disallow
this
usage in abeforeRouteEnter
method
# 📖 Rule Details
Because lack of this
in the beforeRouteEnter
(docs) (opens new window). This behavior isn't obvious, so it's pretty easy to make a TypeError
. Especially during some refactor.
# 🔧 Options
Nothing.
# 🔇 When Not To Use It
When vue-router (opens new window) is not installed.
# 📚 Further Reading
vue-router - in-component-guards (opens new window)
# 🚀 Version
This rule was introduced in eslint-plugin-vue v7.11.0