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: README.md
+14-6
Original file line number
Diff line number
Diff line change
@@ -190,13 +190,16 @@ Enforce all the rules in this category, as well as all higher priority rules, wi
190
190
|| Rule ID | Description |
191
191
|:---|:--------|:------------|
192
192
|:wrench:|[vue/attribute-hyphenation](./docs/rules/attribute-hyphenation.md)| enforce attribute naming style on custom components in template |
193
+
|:wrench:|[vue/html-closing-bracket-newline](./docs/rules/html-closing-bracket-newline.md)| require or disallow a line break before tag's closing brackets |
194
+
|:wrench:|[vue/html-closing-bracket-spacing](./docs/rules/html-closing-bracket-spacing.md)| require or disallow a space before tag's closing brackets |
193
195
|:wrench:|[vue/html-end-tags](./docs/rules/html-end-tags.md)| enforce end tag style |
194
196
|:wrench:|[vue/html-indent](./docs/rules/html-indent.md)| enforce consistent indentation in `<template>`|
@@ -216,21 +219,26 @@ Enforce all the rules in this category, as well as all higher priority rules, wi
216
219
|:---|:--------|:------------|
217
220
|:wrench:|[vue/attributes-order](./docs/rules/attributes-order.md)| enforce order of attributes |
218
221
|:wrench:|[vue/html-quotes](./docs/rules/html-quotes.md)| enforce quotes style of HTML attributes |
219
-
||[vue/no-confusing-v-for-v-if](./docs/rules/no-confusing-v-for-v-if.md)| disallow confusing `v-for` and `v-if` on the same element |
222
+
||[vue/no-use-v-if-with-v-for](./docs/rules/no-use-v-if-with-v-for.md)| disallow use v-if on the same element as v-for |
223
+
||[vue/no-v-html](./docs/rules/no-v-html.md)| disallow use of v-html to prevent XSS attack |
220
224
|:wrench:|[vue/order-in-components](./docs/rules/order-in-components.md)| enforce order of properties in components |
221
225
||[vue/this-in-template](./docs/rules/this-in-template.md)| enforce usage of `this` in template |
222
226
223
227
### Uncategorized
224
228
225
229
|| Rule ID | Description |
226
230
|:---|:--------|:------------|
227
-
|:wrench:|[vue/html-closing-bracket-newline](./docs/rules/html-closing-bracket-newline.md)| require or disallow a line break before tag's closing brackets |
228
-
|:wrench:|[vue/html-closing-bracket-spacing](./docs/rules/html-closing-bracket-spacing.md)| require or disallow a space before tag's closing brackets |
229
-
||[vue/no-use-v-if-with-v-for](./docs/rules/no-use-v-if-with-v-for.md)| disallow use v-if on the same element as v-for |
230
-
||[vue/no-v-html](./docs/rules/no-v-html.md)| disallow use of v-html to prevent XSS attack |
231
-
|:wrench:|[vue/prop-name-casing](./docs/rules/prop-name-casing.md)| enforce specific casing for the Prop name in Vue components |
232
231
|:wrench:|[vue/script-indent](./docs/rules/script-indent.md)| enforce consistent indentation in `<script>`|
233
232
233
+
### Deprecated
234
+
235
+
> -:warning: We're going to remove deprecated rules in the next major release. Please migrate to successor/new rules.
236
+
> -:innocent: We don't fix bugs which are in deprecated rules since we don't have enough resources.
Copy file name to clipboardExpand all lines: docs/rules/html-closing-bracket-newline.md
+1
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,6 @@
1
1
# require or disallow a line break before tag's closing brackets (vue/html-closing-bracket-newline)
2
2
3
+
-:gear: This rule is included in `"plugin:vue/strongly-recommended"` and `"plugin:vue/recommended"`.
3
4
-: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.
4
5
5
6
People have own preference about the location of closing brackets.
Copy file name to clipboardExpand all lines: docs/rules/html-closing-bracket-spacing.md
+1
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,6 @@
1
1
# require or disallow a space before tag's closing brackets (vue/html-closing-bracket-spacing)
2
2
3
+
-:gear: This rule is included in `"plugin:vue/strongly-recommended"` and `"plugin:vue/recommended"`.
3
4
-: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.
4
5
5
6
This rule enforces consistent spacing style before closing brackets `>` of tags.
Copy file name to clipboardExpand all lines: docs/rules/no-confusing-v-for-v-if.md
+1
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,7 @@
1
1
# disallow confusing `v-for` and `v-if` on the same element (vue/no-confusing-v-for-v-if)
2
2
3
3
-:gear: This rule is included in `"plugin:vue/recommended"`.
4
+
-: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.
4
5
5
6
> 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.
Copy file name to clipboardExpand all lines: docs/rules/no-v-html.md
+2
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,7 @@
1
1
# disallow use of v-html to prevent XSS attack (vue/no-v-html)
2
2
3
+
-:gear: This rule is included in `"plugin:vue/recommended"`.
4
+
3
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 Side Scripting (XSS) attacks.
Copy file name to clipboardExpand all lines: docs/rules/prop-name-casing.md
+1
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,6 @@
1
1
# enforce specific casing for the Prop name in Vue components (vue/prop-name-casing)
2
2
3
+
-:gear: This rule is included in `"plugin:vue/strongly-recommended"` and `"plugin:vue/recommended"`.
3
4
-: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.
4
5
5
6
This rule would enforce proper casing of props in vue components(camelCase).
0 commit comments