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

Commit

Permalink
Deprecate no-use-before-declare rule for typescript >= 2.9.0 (#4695)
Browse files Browse the repository at this point in the history
  • Loading branch information
waseemahmad31 authored and Josh Goldberg committed May 5, 2019
1 parent be293b0 commit 5a3a640
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/rules/noUseBeforeDeclareRule.ts
Expand Up @@ -15,6 +15,7 @@
* limitations under the License.
*/

import * as semver from "semver";
import { isBindingElement } from "tsutils";
import * as ts from "typescript";

Expand Down Expand Up @@ -42,6 +43,9 @@ export class Rule extends Lint.Rules.TypedRule {
typescriptOnly: false,
requiresTypeInfo: true,
codeExamples,
deprecationMessage: semver.gte(ts.version, "2.9.0-dev.0")
? "Since TypeScript 2.9. Please use the built-in compiler checks instead."
: undefined,
};
/* tslint:enable:object-literal-sort-keys */

Expand Down

0 comments on commit 5a3a640

Please sign in to comment.