Skip to content

Conversation

@christophehurpeau
Copy link
Contributor

@christophehurpeau christophehurpeau commented Jul 24, 2018

Add ConditionalExpression in the rule explicit-length-check, allowing to check this kind of code :

const foo = [].length === 0 ? null : undefined;

Before, only IfStatements where checked.

It does create a breaking change, do you want to add an option for it ?

@sindresorhus
Copy link
Owner

It does create a breaking change, do you want to add an option for it ?

No, I'll just do a major release. Most things regarding linting is a breaking change.

@sindresorhus sindresorhus merged commit ad1fd85 into sindresorhus:master Jul 28, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants