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

prefer-conditional-expression: don't check else-if by default #2963

Merged
merged 2 commits into from Aug 7, 2017
Merged

prefer-conditional-expression: don't check else-if by default #2963

merged 2 commits into from Aug 7, 2017

Conversation

ajafff
Copy link
Contributor

@ajafff ajafff commented Jun 27, 2017

PR checklist

Overview of change:

[rule-change] prefer-conditional-expression: ignore if-else-if by default. Use the new "check-else-if" option to check nested if statements
[new-rule-option]: prefer-conditional-expression adds check-else-if
Fixes: #2899

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

I intentionally left the configuration presets (all and lastest) unchanged, because I expect not many developers want to enable this option.

CHANGELOG.md entry:

[rule-change] `prefer-conditional-expression`: ignore `if-else-if` by default. Use the new `"check-else-if"` option to check nested if statements
[new-rule-option]: `prefer-conditional-expression` adds `check-else-if`
Fixes: #2899
@adidahiya adidahiya merged commit 792206b into palantir:master Aug 7, 2017
HyphnKnight pushed a commit to HyphnKnight/tslint that referenced this pull request Apr 9, 2018
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.

prefer-conditional-expression complains about using if - elseif - else
2 participants