Skip to content

Commit 949a5cd

Browse files
authored
Update: fix operator-linebreak overrides schema (#13199)
1 parent 9e1414e commit 949a5cd

File tree

2 files changed

+3
-6
lines changed

2 files changed

+3
-6
lines changed

docs/rules/operator-linebreak.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ This rule enforces a consistent linebreak style for operators.
2222

2323
## Options
2424

25-
This rule has one option, which can be a string option or an object option.
25+
This rule has two options, a string option and an object option.
2626

2727
String option:
2828

lib/rules/operator-linebreak.js

+2-5
Original file line numberDiff line numberDiff line change
@@ -35,11 +35,8 @@ module.exports = {
3535
properties: {
3636
overrides: {
3737
type: "object",
38-
properties: {
39-
anyOf: {
40-
type: "string",
41-
enum: ["after", "before", "none", "ignore"]
42-
}
38+
additionalProperties: {
39+
enum: ["after", "before", "none", "ignore"]
4340
}
4441
}
4542
},

0 commit comments

Comments
 (0)