This repository has been archived by the owner on Mar 25, 2021. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix for #4518: (no-trailing-whitespace) flags leading empty line as e…
- Loading branch information
Showing
4 changed files
with
21 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 4 additions & 0 deletions
4
test/rules/no-trailing-whitespace/zero-width-no-break-space/test.ts.lint
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
| ||
// This file starts with a zero width no-break-space. | ||
// See http://www.fileformat.info/info/unicode/char/feff/index.htm | ||
const a = 3; |
5 changes: 5 additions & 0 deletions
5
test/rules/no-trailing-whitespace/zero-width-no-break-space/test2.ts.lint
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
| ||
~~ [trailing whitespace] | ||
// This file starts with a zero width no-break-space followed by a trailing space. | ||
// See http://www.fileformat.info/info/unicode/char/feff/index.htm | ||
const a = 3; |
5 changes: 5 additions & 0 deletions
5
test/rules/no-trailing-whitespace/zero-width-no-break-space/tslint.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"rules": { | ||
"no-trailing-whitespace": true | ||
} | ||
} |