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

Commit

Permalink
Fix options schema
Browse files Browse the repository at this point in the history
  • Loading branch information
saberduck committed May 3, 2018
1 parent f286336 commit b8f8de9
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions src/rules/adjacentOverloadSignaturesRule.ts
Expand Up @@ -33,10 +33,15 @@ export class Rule extends Lint.Rules.AbstractRule {
description: "Enforces function overloads to be consecutive.",
optionsDescription: Lint.Utils.dedent`
If \`${IGNORE_ACCESSORS}\` is specified, then getters and setters are not considered to be overloads
of function with same signature.`,
of function with the same signature.`,
options: {
type: "string",
enum: [IGNORE_ACCESSORS],
type: "array",
items: {
type: "string",
enum: [IGNORE_ACCESSORS],
},
minLength: 0,
maxLength: 1,
},
optionExamples: [true, [true, IGNORE_ACCESSORS]],
rationale: "Improves readability and organization by grouping naturally related items together.",
Expand Down

0 comments on commit b8f8de9

Please sign in to comment.