Skip to content

boolean-trivia lint rule: Lint for null/undefined too #15077

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

Merged
1 commit merged into from
Apr 11, 2017
Merged

boolean-trivia lint rule: Lint for null/undefined too #15077

1 commit merged into from
Apr 11, 2017

Conversation

ghost
Copy link

@ghost ghost commented Apr 7, 2017

I think this should lint for null / undefined, because just like with true / false it can be hard to remember what they mean. It should probably be renamed of course...
We should also check for the existence/nonexistence of a space after the comment: Should there be a space or not?

@ghost ghost requested review from aozgaa and RyanCavanaugh April 7, 2017 20:15
@ghost ghost changed the title wip @andy-ms boolean-trivia lint rule: Lint for null/undefined too Apr 7, 2017
@ghost ghost changed the title @andy-ms boolean-trivia lint rule: Lint for null/undefined too boolean-trivia lint rule: Lint for null/undefined too Apr 7, 2017
Copy link
Member

@sandersn sandersn left a comment

Choose a reason for hiding this comment

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

I think space afterward should be required.

@ghost ghost merged commit c38d2a1 into master Apr 11, 2017
@ghost ghost deleted the null-trivia branch April 11, 2017 15:43
@microsoft microsoft locked and limited conversation to collaborators Jun 21, 2018
This pull request was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants