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"] } } },