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
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/rules/typeofCompareRule.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ export class Rule extends Lint.Rules.AbstractRule {
optionExamples: [true],
type: "functionality",
typescriptOnly: false,
deprecationMessage: ts.versionMajorMinor as string === "2.1"
deprecationMessage: !/^2\.1\./.test(ts.version)
? "Starting from TypeScript 2.2 the compiler includes this check which makes this rule redundant."
: "",
};
Expand Down