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
-1
Original file line number
Diff line number
Diff line change
@@ -12,7 +12,6 @@ sidebarDepth: 0
12
12
:bulb: Indicates that some problems reported by the rule are manually fixable by editor [suggestions](https://eslint.org/docs/developer-guide/working-with-rules#providing-suggestions).
13
13
:::
14
14
15
-
16
15
## Base Rules (Enabling Correct ESLint Parsing)
17
16
18
17
Enforce all the rules in this category, as well as all higher priority rules, with:
Copy file name to clipboardExpand all lines: docs/rules/html-closing-bracket-newline.md
+4-4
Original file line number
Diff line number
Diff line change
@@ -66,11 +66,11 @@ This rule aims to warn the right angle brackets which are at the location other
66
66
```
67
67
68
68
-`singleline` ... the configuration for single-line elements. It's a single-line element if the element does not have attributes or the last attribute is on the same line as the opening bracket.
69
-
-`"never"` (default) ... disallow line breaks before the closing bracket.
70
-
-`"always"` ... require one line break before the closing bracket.
69
+
-`"never"` (default) ... disallow line breaks before the closing bracket.
70
+
-`"always"` ... require one line break before the closing bracket.
71
71
-`multiline` ... the configuration for multiline elements. It's a multiline element if the last attribute is not on the same line of the opening bracket.
72
-
-`"never"` ... disallow line breaks before the closing bracket.
73
-
-`"always"` (default) ... require one line break before the closing bracket.
72
+
-`"never"` ... disallow line breaks before the closing bracket.
73
+
-`"always"` (default) ... require one line break before the closing bracket.
74
74
75
75
Plus, you can use [`vue/html-indent`](./html-indent.md) rule to enforce indent-level of the closing brackets.
Copy file name to clipboardExpand all lines: docs/rules/no-bare-strings-in-template.md
-1
Original file line number
Diff line number
Diff line change
@@ -16,7 +16,6 @@ In order to be able to internationalize your application, you will need to avoid
16
16
17
17
This rule was inspired by [no-bare-strings rule in ember-template-lint](https://github.com/ember-template-lint/ember-template-lint/blob/master/docs/rule/no-bare-strings.md).
Copy file name to clipboardExpand all lines: docs/rules/no-this-in-before-route-enter.md
+1-1
Original file line number
Diff line number
Diff line change
@@ -11,7 +11,7 @@ since: v7.11.0
11
11
12
12
## :book: Rule Details
13
13
14
-
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.
14
+
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.
Copy file name to clipboardExpand all lines: docs/rules/no-use-v-if-with-v-for.md
+3-2
Original file line number
Diff line number
Diff line change
@@ -16,8 +16,9 @@ since: v4.6.0
16
16
This rule is aimed at preventing the use of `v-for` directives together with `v-if` directives on the same element.
17
17
18
18
There are two common cases where this can be tempting:
19
-
* To filter items in a list (e.g. `v-for="user in users" v-if="user.isActive"`). In these cases, replace `users` with a new computed property that returns your filtered list (e.g. `activeUsers`).
20
-
* To avoid rendering a list if it should be hidden (e.g. `v-for="user in users" v-if="shouldShowUsers"`). In these cases, move the `v-if` to a container element (e.g. `ul`, `ol`).
19
+
20
+
- To filter items in a list (e.g. `v-for="user in users" v-if="user.isActive"`). In these cases, replace `users` with a new computed property that returns your filtered list (e.g. `activeUsers`).
21
+
- To avoid rendering a list if it should be hidden (e.g. `v-for="user in users" v-if="shouldShowUsers"`). In these cases, move the `v-if` to a container element (e.g. `ul`, `ol`).
0 commit comments