Skip to content

Commit cf02d78

Browse files
committed
update no-multi-spaces
1 parent 8325289 commit cf02d78

File tree

1 file changed

+16
-19
lines changed

1 file changed

+16
-19
lines changed

docs/rules/no-multi-spaces.md

Lines changed: 16 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -3,31 +3,28 @@
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-
The `--fix` option on the command line can automatically fix some of the problems reported by this rule.
6+
## :book: Rule Details
77

8-
This rule aims to remove multiple spaces in a row between attributes which are not used for indentation.
8+
This rule aims at removing multiple spaces in tags, which are not used for indentation.
99

10-
## Rule Details
11-
12-
Examples of **incorrect** code for this rule:
13-
14-
```html
15-
<div class="foo"
16-
:style="bar" />
10+
<eslint-code-block :rules="{'vue/no-multi-spaces': ['error']}">
1711
```
18-
19-
Examples of **correct** code for this rule:
20-
21-
```html
22-
<div
23-
class="foo"
24-
:style="bar"
25-
/>
12+
<template>
13+
<!-- ✓ GOOD -->
14+
<div
15+
class="foo"
16+
:style="bar" />
17+
18+
<!-- ✗ BAD -->
19+
<div class="foo"
20+
:style = "bar" />
21+
</template>
2622
```
23+
</eslint-code-block>
2724

28-
### Options
25+
## :wrench: Options
2926

30-
Nothing
27+
Nothing.
3128

3229
## :mag: Implementation
3330

0 commit comments

Comments
 (0)