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

no-null-keyword: Allow strict comparison #2802

Merged
merged 1 commit into from Jul 31, 2017
Merged

no-null-keyword: Allow strict comparison #2802

merged 1 commit into from Jul 31, 2017

Conversation

ajafff
Copy link
Contributor

@ajafff ajafff commented May 21, 2017

PR checklist

Overview of change:

Allows x === null, but disallows x == null. The latter will be automatically fixed to x == undefined.
Fixes: #2782

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

CHANGELOG.md entry:

[new-fixer] no-null-keyword: fix x == null to x == undefined
[enhancement] no-null-keyword allows strict comparison

Allows `x === null`, but disallows `x == null`. The latter will be automatically fixed to `x == undefined`.

[new-fixer] `no-null-keyword`: fix `x == null` to `x == undefined`
[enhancement] `no-null-keyword` allows strict comparison
Fixes: #2782
@adidahiya adidahiya merged commit ace23ce into palantir:master Jul 31, 2017
HyphnKnight pushed a commit to HyphnKnight/tslint that referenced this pull request Apr 9, 2018
Allows `x === null`, but disallows `x == null`. The latter will be automatically fixed to `x == undefined`.

[new-fixer] `no-null-keyword`: fix `x == null` to `x == undefined`
[enhancement] `no-null-keyword` allows strict comparison
Fixes: palantir#2782
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.

Conflicts with no-null-keyword
2 participants