Skip to content
This repository has been archived by the owner on Mar 25, 2021. It is now read-only.

fix for #4518: (no-trailing-whitespace) flags leading empty line as error #4543

Merged
merged 4 commits into from Mar 7, 2019
Merged

Conversation

rrogowski
Copy link
Contributor

PR checklist

Overview of change:

Temporary fix to handle files starting with a byte order mark (see ajafff/tsutils#94).

CHANGELOG.md entry:

[bugfix] no-trailing-whitespace no longer flags files starting with a byte order mark

src/rules/noTrailingWhitespaceRule.ts Outdated Show resolved Hide resolved
src/rules/noTrailingWhitespaceRule.ts Outdated Show resolved Hide resolved
@rrogowski
Copy link
Contributor Author

@JoshuaKGoldberg suggestions have been addressed. Ready for your review.

Copy link
Contributor

@JoshuaKGoldberg JoshuaKGoldberg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Super, thanks @rrogowski! Always nice to have fewer spooky whitespace bugs. 😄 Loving the fix.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants