Skip to content

Commit a8bdf72

Browse files
michalsnikmysticatea
authored andcommitted
Disable "html-no-self-closing" rule in recommended configuration (#54)
1 parent 7fbb8cd commit a8bdf72

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ The `--fix` option on the command line automatically fixes problems reported by
6565
| | Rule ID | Description |
6666
|:---|:--------|:------------|
6767
| :wrench: | [html-end-tags](./docs/rules/html-end-tags.md) | enforce end tag style. |
68-
| :white_check_mark::wrench: | [html-no-self-closing](./docs/rules/html-no-self-closing.md) | disallow self-closing elements. |
68+
| :wrench: | [html-no-self-closing](./docs/rules/html-no-self-closing.md) | disallow self-closing elements. |
6969
| :white_check_mark: | [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. |
7070
| | [no-duplicate-attributes](./docs/rules/no-duplicate-attributes.md) | disallow duplicate arguments. |
7171
| :white_check_mark: | [no-textarea-mustache](./docs/rules/no-textarea-mustache.md) | disallow mustaches in `<textarea>`. |

lib/recommended-rules.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
*/
66
module.exports = {
77
"vue/html-end-tags": "off",
8-
"vue/html-no-self-closing": "error",
8+
"vue/html-no-self-closing": "off",
99
"vue/html-quotes": "off",
1010
"vue/jsx-uses-vars": "error",
1111
"vue/no-confusing-v-for-v-if": "error",

lib/rules/html-no-self-closing.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ module.exports = {
4949
docs: {
5050
description: 'disallow self-closing elements.',
5151
category: 'Best Practices',
52-
recommended: true
52+
recommended: false
5353
},
5454
fixable: 'code',
5555
schema: []

0 commit comments

Comments
 (0)