Skip to content

Commit 4299ae0

Browse files
ota-meshimichalsnik
authored andcommitted
Changed the category of html-quotes to strongly-recommended. (#695)
1 parent bd995fd commit 4299ae0

File tree

5 files changed

+8
-4
lines changed

5 files changed

+8
-4
lines changed

docs/rules/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,7 @@ Enforce all the rules in this category, as well as all higher priority rules, wi
8585
| [vue/html-closing-bracket-spacing](./html-closing-bracket-spacing.md) | require or disallow a space before tag's closing brackets | :wrench: |
8686
| [vue/html-end-tags](./html-end-tags.md) | enforce end tag style | :wrench: |
8787
| [vue/html-indent](./html-indent.md) | enforce consistent indentation in `<template>` | :wrench: |
88+
| [vue/html-quotes](./html-quotes.md) | enforce quotes style of HTML attributes | :wrench: |
8889
| [vue/html-self-closing](./html-self-closing.md) | enforce self-closing style | :wrench: |
8990
| [vue/max-attributes-per-line](./max-attributes-per-line.md) | enforce the maximum number of attributes per line | :wrench: |
9091
| [vue/multiline-html-element-content-newline](./multiline-html-element-content-newline.md) | require a line break before and after the contents of a multiline element | :wrench: |
@@ -113,7 +114,6 @@ Enforce all the rules in this category, as well as all higher priority rules, wi
113114
| Rule ID | Description | |
114115
|:--------|:------------|:---|
115116
| [vue/attributes-order](./attributes-order.md) | enforce order of attributes | :wrench: |
116-
| [vue/html-quotes](./html-quotes.md) | enforce quotes style of HTML attributes | :wrench: |
117117
| [vue/no-v-html](./no-v-html.md) | disallow use of v-html to prevent XSS attack | |
118118
| [vue/order-in-components](./order-in-components.md) | enforce order of properties in components | :wrench: |
119119
| [vue/this-in-template](./this-in-template.md) | disallow usage of `this` in template | |

docs/rules/html-quotes.md

+5-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ description: enforce quotes style of HTML attributes
77
# vue/html-quotes
88
> enforce quotes style of HTML attributes
99
10-
- :gear: This rule is included in `"plugin:vue/recommended"`.
10+
- :gear: This rule is included in `"plugin:vue/strongly-recommended"` and `"plugin:vue/recommended"`.
1111
- :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.
1212

1313
You can choose quotes of HTML attributes from:
@@ -63,6 +63,10 @@ Default is set to `double`.
6363
```
6464
</eslint-code-block>
6565

66+
## Related links
67+
68+
- [Style guide - Quoted attribute values](https://vuejs.org/v2/style-guide/#Quoted-attribute-values-strongly-recommended)
69+
6670
## :mag: Implementation
6771

6872
- [Rule source](https://github.com/vuejs/eslint-plugin-vue/blob/master/lib/rules/html-quotes.js)

lib/configs/recommended.js

-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ module.exports = {
77
extends: require.resolve('./strongly-recommended'),
88
rules: {
99
'vue/attributes-order': 'warn',
10-
'vue/html-quotes': 'warn',
1110
'vue/no-v-html': 'warn',
1211
'vue/order-in-components': 'warn',
1312
'vue/this-in-template': 'warn'

lib/configs/strongly-recommended.js

+1
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ module.exports = {
1212
'vue/html-closing-bracket-spacing': 'warn',
1313
'vue/html-end-tags': 'warn',
1414
'vue/html-indent': 'warn',
15+
'vue/html-quotes': 'warn',
1516
'vue/html-self-closing': 'warn',
1617
'vue/max-attributes-per-line': 'warn',
1718
'vue/multiline-html-element-content-newline': 'warn',

lib/rules/html-quotes.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ module.exports = {
2020
type: 'layout',
2121
docs: {
2222
description: 'enforce quotes style of HTML attributes',
23-
category: 'recommended',
23+
category: 'strongly-recommended',
2424
url: 'https://github.com/vuejs/eslint-plugin-vue/blob/v5.0.0-beta.5/docs/rules/html-quotes.md'
2525
},
2626
fixable: 'code',

0 commit comments

Comments
 (0)