Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix: eol-last allow empty-string to always pass (refs #9534) #9696

Merged
merged 1 commit into from
Dec 11, 2017

Conversation

platinumazure
Copy link
Member

Note that there are already tests asserting this behavior, but they aren't actually run in the rules. See #9534.

What is the purpose of this pull request? (put an "X" next to item)

[ ] Documentation update
[x] Bug fix (template)
[ ] New rule (template)
[ ] Changes an existing rule (template)
[ ] Add autofixing to a rule
[ ] Add a CLI option
[ ] Add something to the core
[ ] Other, please explain:

What changes did you make? (Give an overview)

Add code to explicitly allow empty string source to pass linting in eol-last even when newline is required in config.

Is there anything you'd like reviewers to focus on?

Note that there is already test coverage (although the tests are not actually run in the rule due to #9534). I applied the same patch to Linter that not-an-aardvark had done in order to test the changes locally.

Note that there are already tests asserting this behavior, but they aren't actually run in the rules. See #9534
@platinumazure platinumazure added accepted There is consensus among the team that this change meets the criteria for inclusion bug ESLint is working incorrectly rule Relates to ESLint's core rules labels Dec 8, 2017
Copy link
Member

@kaicataldo kaicataldo left a comment

Choose a reason for hiding this comment

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

LGTM

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
accepted There is consensus among the team that this change meets the criteria for inclusion archived due to age This issue has been archived; please open a new issue for any further discussion bug ESLint is working incorrectly rule Relates to ESLint's core rules
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants