Skip to content

Commit

Permalink
Update no-use-before-declare docs (palantir#3520)
Browse files Browse the repository at this point in the history
  • Loading branch information
adidahiya authored Nov 28, 2017
1 parent b5297ad commit 1080636
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/rules/noUseBeforeDeclareRule.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,13 @@ export class Rule extends Lint.Rules.TypedRule {
ruleName: "no-use-before-declare",
description: "Disallows usage of variables before their declaration.",
descriptionDetails: Lint.Utils.dedent`
This rule is primarily useful when using the \`var\` keyword -
the compiler will detect if a \`let\` and \`const\` variable is used before it is declared.`,
This rule is primarily useful when using the \`var\` keyword since the compiler will
automatically detect if a block-scoped \`let\` and \`const\` variable is used before
declaration. Since most modern TypeScript doesn't use \`var\`, this rule is generally
discouraged and is kept around for legacy purposes. It is slow to compute, is not
enabled in the built-in configuration presets, and should not be used to inform TSLint
design decisions.
`,
optionsDescription: "Not configurable.",
options: null,
optionExamples: [true],
Expand Down

0 comments on commit 1080636

Please sign in to comment.