From f07ae41bb7d9b73e0dd8d61ded852d2ae3b29dd8 Mon Sep 17 00:00:00 2001 From: chris Date: Sat, 27 Apr 2019 19:16:34 +0200 Subject: [PATCH] fixed "no-unused-variable" argument count --- src/rules/noUnusedVariableRule.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/rules/noUnusedVariableRule.ts b/src/rules/noUnusedVariableRule.ts index e77f8745431..e5b9422ce32 100644 --- a/src/rules/noUnusedVariableRule.ts +++ b/src/rules/noUnusedVariableRule.ts @@ -38,7 +38,7 @@ export class Rule extends Lint.Rules.TypedRule { and private class members, when using TSLint's \`--fix\` option.`, hasFix: true, optionsDescription: Lint.Utils.dedent` - Three optional arguments may be optionally provided: + Two optional arguments may be optionally provided: * \`"check-parameters"\` disallows unused function and constructor parameters. * NOTE: this option is experimental and does not work with classes @@ -63,7 +63,7 @@ export class Rule extends Lint.Rules.TypedRule { ], }, minLength: 0, - maxLength: 3, + maxLength: 2, }, optionExamples: [true, [true, { "ignore-pattern": "^_" }]], rationale: Lint.Utils.dedent`