File tree Expand file tree Collapse file tree 1 file changed +9
-9
lines changed Expand file tree Collapse file tree 1 file changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -18,9 +18,9 @@ Examples of **incorrect** code for this rule:
18
18
``` js
19
19
/* eslint no-trailing-spaces: "error"*/
20
20
21
- var foo = 0 ;// •••••
22
- var baz = 5 ;// ••
23
- // •••••
21
+ var foo = 0 ;/* trailing whitespace */
22
+ var baz = 5 ;/* trailing whitespace */
23
+ /* trailing whitespace */
24
24
```
25
25
26
26
:::
@@ -58,7 +58,7 @@ Examples of **correct** code for this rule with the `{ "skipBlankLines": true }`
58
58
59
59
var foo = 0 ;
60
60
var baz = 5 ;
61
- // •••••
61
+ // trailing whitespace →
62
62
```
63
63
64
64
:::
@@ -72,12 +72,12 @@ Examples of **correct** code for this rule with the `{ "ignoreComments": true }`
72
72
``` js
73
73
/* eslint no-trailing-spaces: ["error", { "ignoreComments": true }]*/
74
74
75
- // foo•
76
- // •••••
75
+ // ↓ these comments have trailing whitespace →
76
+ //
77
77
/**
78
- *• baz
79
- *••
80
- *• bar
78
+ * baz
79
+ *
80
+ * bar
81
81
*/
82
82
```
83
83
You can’t perform that action at this time.
0 commit comments