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

Commit

Permalink
fix condition for deprecation of typeof-compare (#3429)
Browse files Browse the repository at this point in the history
  • Loading branch information
ajafff authored and adidahiya committed Jan 9, 2018
1 parent a7f0537 commit 08441bf
Showing 1 changed file with 1 addition and 1 deletion.
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

0 comments on commit 08441bf

Please sign in to comment.