You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Mar 25, 2021. It is now read-only.
@itanex thanks for the bug report! I tried reproducing this locally but couldn't. Is the project you're experiencing this with open source, or failing that, could you upload ActionItem.ts or another file it's happening on?
One guess would be that the file has some \r\n lines and some \n.
@JoshuaKGoldberg Yes the file line endings are windows line endings (\r\n).
I have uploaded the ActionItem.ts file along with the tslint.json.
Please note that the ActionItems.ts file is generated through TypeWriter, so simply deleting the line is not a viable option, as this would need to be done anytime the file is regenerated.
This was a fun one to debug! The root issue is that getLineRanges from the tsutils library is reporting that the first line in the ActionItem.ts file has a contentLength of 1 instead of 0. Filed ajafff/tsutils#94 to track.
Accepting PRs to fix in this library in the meantime, since even if tsutils releases a version with a fix, TSLint still accepts older versions of tsutils.
Bug Report
TypeScript code being linted
Multiple classes with a leading line that is empty. This line only contains line endings when analyzed (e.g. \r\n)
with
tslint.json
configuration:Actual behavior
Multiple results identical to the following
ERROR: ClientApp/src/app/models/ActionItem.ts:1:1 - trailing whitespace
Expected behavior
No results generated
The text was updated successfully, but these errors were encountered: