File tree 1 file changed +10
-9
lines changed
1 file changed +10
-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,8 @@ 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
+ // ↓ a line with whitespace only ↓
62
+
62
63
```
63
64
64
65
:::
@@ -72,12 +73,12 @@ Examples of **correct** code for this rule with the `{ "ignoreComments": true }`
72
73
``` js
73
74
/* eslint no-trailing-spaces: ["error", { "ignoreComments": true }]*/
74
75
75
- // foo•
76
- // •••••
76
+ // ↓ these comments have trailing whitespace →
77
+ //
77
78
/**
78
- *• baz
79
- *••
80
- *• bar
79
+ * baz
80
+ *
81
+ * bar
81
82
*/
82
83
```
83
84
You can’t perform that action at this time.
0 commit comments