Skip to content

Commit 24e50c7

Browse files
committed
Add links and fix style
1 parent 3e5d051 commit 24e50c7

File tree

3 files changed

+10
-14
lines changed

3 files changed

+10
-14
lines changed

docs/rules/no-confusing-v-for-v-if.md

+6-6
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,6 @@
22

33
- :warning: This rule was **deprecated** and replaced by [vue/no-use-v-if-with-v-for](no-use-v-if-with-v-for.md) rule.
44

5-
> When they exist on the same node, `v-for` has a higher priority than `v-if`. That means the `v-if` will be run on each iteration of the loop separately.
6-
>
7-
> https://vuejs.org/v2/guide/list.html#v-for-with-v-if
8-
9-
So when they exist on the same node, `v-if` directive should use the reference which is to the variables which are defined by the `v-for` directives.
10-
115
## :book: Rule Details
126

137
This rule reports the elements which have both `v-for` and `v-if` directives in the following cases:
@@ -42,6 +36,12 @@ In that case, the `v-if` should be written on the wrapper element.
4236
```
4337
</eslint-code-block>
4438

39+
::: warning Note
40+
When they exist on the same node, `v-for` has a higher priority than `v-if`. That means the `v-if` will be run on each iteration of the loop separately.
41+
42+
[https://vuejs.org/v2/guide/list.html#v-for-with-v-if](https://vuejs.org/v2/guide/list.html#v-for-with-v-if)
43+
:::
44+
4545
## :wrench: Options
4646

4747
Nothing.

docs/rules/no-v-html.md

+3-5
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,9 @@
22

33
- :gear: This rule is included in `"plugin:vue/recommended"`.
44

5-
This rule reports use of `v-html` directive in order to reduce the risk of injecting potentially unsafe / unescaped html into the browser leading to Cross-Site Scripting (XSS) attacks.
6-
75
## :book: Rule Details
86

9-
This rule reports all uses of `v-html` to help prevent XSS attacks.
7+
This rule reports all uses of `v-html` directive in order to reduce the risk of injecting potentially unsafe / unescaped html into the browser leading to Cross-Site Scripting (XSS) attacks.
108

119
<eslint-code-block :rules="{'vue/no-v-html': ['error']}">
1210
```
@@ -20,15 +18,15 @@ This rule reports all uses of `v-html` to help prevent XSS attacks.
2018
```
2119
</eslint-code-block>
2220

23-
This rule does not check syntax errors in directives because it's checked by no-parsing-error rule.
21+
This rule does not check syntax errors in directives because it's checked by [vue/no-parsing-error](./no-parsing-error.md) rule.
2422

2523
## :wrench: Options
2624

2725
Nothing.
2826

2927
## :mute: When Not To Use It
3028

31-
If you are certain the content passed `to v-html` is sanitized HTML you can disable this rule.
29+
If you are certain the content passed to `v-html` is sanitized HTML you can disable this rule.
3230

3331
## :books: Further reading
3432

docs/rules/prop-name-casing.md

+1-3
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,9 @@
33
- :gear: This rule is included in `"plugin:vue/strongly-recommended"` and `"plugin:vue/recommended"`.
44
- :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.
55

6-
This rule would enforce proper casing of props in vue components(camelCase).
7-
86
## :book: Rule Details
97

10-
(https://vuejs.org/v2/style-guide/#Prop-name-casing-strongly-recommended).
8+
This rule enforce proper casing of props in vue components(camelCase).
119

1210
<eslint-code-block fix :rules="{'vue/prop-name-casing': ['error']}">
1311
```

0 commit comments

Comments
 (0)