From 949a5cd741c2e930cfb43d80a9b6b084f9d677c3 Mon Sep 17 00:00:00 2001 From: Milos Djermanovic Date: Fri, 19 Jun 2020 18:02:31 +0200 Subject: [PATCH] Update: fix operator-linebreak overrides schema (#13199) --- docs/rules/operator-linebreak.md | 2 +- lib/rules/operator-linebreak.js | 7 ++----- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/docs/rules/operator-linebreak.md b/docs/rules/operator-linebreak.md index 3b1986e0fff..159bd528ad5 100644 --- a/docs/rules/operator-linebreak.md +++ b/docs/rules/operator-linebreak.md @@ -22,7 +22,7 @@ This rule enforces a consistent linebreak style for operators. ## Options -This rule has one option, which can be a string option or an object option. +This rule has two options, a string option and an object option. String option: diff --git a/lib/rules/operator-linebreak.js b/lib/rules/operator-linebreak.js index 3395feae655..18da5c55b4a 100644 --- a/lib/rules/operator-linebreak.js +++ b/lib/rules/operator-linebreak.js @@ -35,11 +35,8 @@ module.exports = { properties: { overrides: { type: "object", - properties: { - anyOf: { - type: "string", - enum: ["after", "before", "none", "ignore"] - } + additionalProperties: { + enum: ["after", "before", "none", "ignore"] } } },