-
Notifications
You must be signed in to change notification settings - Fork 889
missing whitespace for file with BOM(UTF-8) #2506
Comments
I have a similar issue with UTF-8 + BOM encoded files and
Actual behaviour .ts[2, 1]: statements are not aligned (reported for every statement in the file that is at the beginning of a line) Expected behavior No error |
We have same whitespace issues with files having utf-8 with BOM encoding. |
We have the same problem with the whitespace rule, it's the "check-typecast" option that is the cause. We use tslint: 5.3.2 and TypeScript 2.3.3. |
We are also having a similar issue with files that were edited in Visual Studio. The files are in UTF8-BOM format. With tslint 5.2.0 they lint without issue but with 5.3.2 we get a "missing whitespace" error on line [1,2] for every file. If we edit the file to remove the BOM then tslint is happy again. I seem to remember something like this happening before so this might be some sort or regression. |
Is there any update on this issue? As of 5.5.0 it still appears to be a problem. Or if someone knows of a way to get Visual Studio 2017 to save without the BOM that would work too. |
Bug Report
TypeScript code being linted
with
tslint.json
configuration:Actual behavior
.ts[1, 2]: missing whitespace
Expected behavior
No error
The text was updated successfully, but these errors were encountered: