Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit dd70e32

Browse files
committed
Add real whitespace to no-trailing-spaces examples
1 parent f079382 commit dd70e32

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

docs/src/rules/no-trailing-spaces.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@ Examples of **incorrect** code for this rule:
1818
```js
1919
/*eslint no-trailing-spaces: "error"*/
2020

21-
var foo = 0;//•••••
22-
var baz = 5;//••
23-
//•••••
21+
var foo = 0;/* trailing whitespace */
22+
var baz = 5;/* trailing whitespace */
23+
/* trailing whitespace */
2424
```
2525

2626
:::
@@ -58,7 +58,7 @@ Examples of **correct** code for this rule with the `{ "skipBlankLines": true }`
5858

5959
var foo = 0;
6060
var baz = 5;
61-
//•••••
61+
// trailing whitespace →
6262
```
6363

6464
:::
@@ -72,12 +72,12 @@ Examples of **correct** code for this rule with the `{ "ignoreComments": true }`
7272
```js
7373
/*eslint no-trailing-spaces: ["error", { "ignoreComments": true }]*/
7474

75-
//foo•
76-
//•••••
75+
// ↓ these comments have trailing whitespace →
76+
//
7777
/**
78-
*baz
79-
*••
80-
*bar
78+
* baz
79+
*
80+
* bar
8181
*/
8282
```
8383

0 commit comments

Comments
 (0)