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

Deprecate no-use-before-declare rule for typescript 2.9+ #4695

Merged
merged 1 commit into from May 5, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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