Skip to content

Commit b3c2257

Browse files
unkillbobljharb
authored andcommitted
[readne] Add note to Whitespace section on removing trailing whitespace
1 parent 05b7f68 commit b3c2257

1 file changed

Lines changed: 16 additions & 0 deletions

File tree

README.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3029,6 +3029,22 @@ Other Style Guides
30293029
<a name="whitespace--no-trailing-spaces"></a>
30303030
- [19.19](#whitespace--no-trailing-spaces) Avoid trailing spaces at the end of lines. eslint: [`no-trailing-spaces`](https://eslint.org/docs/rules/no-trailing-spaces)
30313031
3032+
```javascript
3033+
// bad
3034+
function() {∙∙
3035+
var name;
3036+
∙∙
3037+
// ... stuff ...
3038+
}
3039+
3040+
// good
3041+
function() {
3042+
var name;
3043+
3044+
// ... stuff ...
3045+
}
3046+
```
3047+
30323048
<a name="whitespace--no-multiple-empty-lines"></a>
30333049
- [19.20](#whitespace--no-multiple-empty-lines) Avoid multiple empty lines, only allow one newline at the end of files, and avoid a newline at the beginning of files. eslint: [`no-multiple-empty-lines`](https://eslint.org/docs/rules/no-multiple-empty-lines)
30343050

0 commit comments

Comments
 (0)