You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/rules/README.md
+3-3
Original file line number
Diff line number
Diff line change
@@ -42,15 +42,15 @@ Enforce all the rules in this category, as well as all higher priority rules, wi
42
42
|[vue/no-arrow-functions-in-watch](./no-arrow-functions-in-watch.md)| disallow using arrow functions to define watcher ||
43
43
|[vue/no-async-in-computed-properties](./no-async-in-computed-properties.md)| disallow asynchronous actions in computed properties ||
44
44
|[vue/no-deprecated-data-object-declaration](./no-deprecated-data-object-declaration.md)| disallow using deprecated object declaration on data (in Vue.js 3.0.0+) |:wrench:|
45
-
|[vue/no-deprecated-destroyed-lifecycle](./no-deprecated-destroyed-lifecycle.md)| disallow using deprecated `destroyed` and `beforeDestroy` lifecycle hooks (in Vue.js 3.0.0+) ||
45
+
|[vue/no-deprecated-destroyed-lifecycle](./no-deprecated-destroyed-lifecycle.md)| disallow using deprecated `destroyed` and `beforeDestroy` lifecycle hooks (in Vue.js 3.0.0+) |:wrench:|
46
46
|[vue/no-deprecated-dollar-listeners-api](./no-deprecated-dollar-listeners-api.md)| disallow using deprecated `$listeners` (in Vue.js 3.0.0+) ||
47
47
|[vue/no-deprecated-dollar-scopedslots-api](./no-deprecated-dollar-scopedslots-api.md)| disallow using deprecated `$scopedSlots` (in Vue.js 3.0.0+) |:wrench:|
48
48
|[vue/no-deprecated-events-api](./no-deprecated-events-api.md)| disallow using deprecated events api (in Vue.js 3.0.0+) ||
49
49
|[vue/no-deprecated-filter](./no-deprecated-filter.md)| disallow using deprecated filters syntax (in Vue.js 3.0.0+) ||
50
50
|[vue/no-deprecated-functional-template](./no-deprecated-functional-template.md)| disallow using deprecated the `functional` template (in Vue.js 3.0.0+) ||
51
51
|[vue/no-deprecated-html-element-is](./no-deprecated-html-element-is.md)| disallow using deprecated the `is` attribute on HTML elements (in Vue.js 3.0.0+) ||
52
52
|[vue/no-deprecated-inline-template](./no-deprecated-inline-template.md)| disallow using deprecated `inline-template` attribute (in Vue.js 3.0.0+) ||
53
-
|[vue/no-deprecated-props-default-this](./no-deprecated-props-default-this.md)| disallow props default function `this` access||
53
+
|[vue/no-deprecated-props-default-this](./no-deprecated-props-default-this.md)| disallow deprecated `this` access in props default function (in Vue.js 3.0.0+)||
54
54
|[vue/no-deprecated-scope-attribute](./no-deprecated-scope-attribute.md)| disallow deprecated `scope` attribute (in Vue.js 2.5.0+) |:wrench:|
55
55
|[vue/no-deprecated-slot-attribute](./no-deprecated-slot-attribute.md)| disallow deprecated `slot` attribute (in Vue.js 2.6.0+) |:wrench:|
56
56
|[vue/no-deprecated-slot-scope-attribute](./no-deprecated-slot-scope-attribute.md)| disallow deprecated `slot-scope` attribute (in Vue.js 2.6.0+) |:wrench:|
@@ -314,7 +314,7 @@ For example:
314
314
|[vue/no-restricted-v-bind](./no-restricted-v-bind.md)| disallow specific argument in `v-bind`||
Copy file name to clipboardExpand all lines: docs/rules/no-deprecated-destroyed-lifecycle.md
+2-1
Original file line number
Diff line number
Diff line change
@@ -10,12 +10,13 @@ since: v7.0.0
10
10
> disallow using deprecated `destroyed` and `beforeDestroy` lifecycle hooks (in Vue.js 3.0.0+)
11
11
12
12
-:gear: This rule is included in all of `"plugin:vue/vue3-essential"`, `"plugin:vue/vue3-strongly-recommended"` and `"plugin:vue/vue3-recommended"`.
13
+
-:wrench: The `--fix` option on the [command line](https://eslint.org/docs/user-guide/command-line-interface#fixing-problems) can automatically fix some of the problems reported by this rule.
13
14
14
15
## :book: Rule Details
15
16
16
17
This rule reports use of deprecated `destroyed` and `beforeDestroy` lifecycle hooks. (in Vue.js 3.0.0+).
Copy file name to clipboardExpand all lines: docs/rules/no-this-in-before-route-enter.md
+9-58
Original file line number
Diff line number
Diff line change
@@ -2,77 +2,29 @@
2
2
pageClass: rule-details
3
3
sidebarDepth: 0
4
4
title: vue/no-this-in-before-route-enter
5
-
description: disallow this usage in a beforeRouteEnter method
5
+
description: disallow `this` usage in a `beforeRouteEnter` method
6
6
---
7
7
# vue/no-this-in-before-route-enter
8
8
9
-
> disallow this usage in a beforeRouteEnter method
9
+
> disallow `this` usage in a `beforeRouteEnter` method
10
10
11
11
-:exclamation: <badgetext="This rule has not been released yet."vertical="middle"type="error"> ***This rule has not been released yet.*** </badge>
12
12
13
-
## Rule Details
13
+
## :book:Rule Details
14
14
15
15
Because lack of `this` in the `beforeRouteEnter`[(docs)](https://router.vuejs.org/guide/advanced/navigation-guards.html#in-component-guards). This behavior isn't obvious, so it's pretty easy to make a `TypeError`. Especially during some refactor.
0 commit comments