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

fix condition for deprecation of typeof-compare #3429

Merged
merged 1 commit into from
Jan 9, 2018
Merged

fix condition for deprecation of typeof-compare #3429

merged 1 commit into from
Jan 9, 2018

Conversation

ajafff
Copy link
Contributor

@ajafff ajafff commented Oct 31, 2017

The condition was off. #3286 actually deprecated the rule only for typescript@2.1.
Well, not really, because ts.versionMajorMinor was introduced in a later release.
That means nobody gets a deprecation warning right now.

This PR fixes both issues.

@adidahiya adidahiya merged commit 08441bf into palantir:master Jan 9, 2018
@karfau
Copy link

karfau commented Mar 10, 2018

Can somebody please help me to understand this?
The check will only add the deprecationMessage to typescript versions v2.1.*, right?
Why should it not also be displayed when it would be enabled and used with a more recent typescript version?
When requiring the rule and looking at the metadata the deprecationMessage is an empty string.
How is this helpful?

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.

3 participants