Ensure that each top-level choice in a rule is on a new line.
- ⭐️ This rule is included in
plugin:@peggyjs/recommended
preset.- ✒️ This rule will fix all errors it finds.
Rules often contain a set of choices, separated by "/". Current best practice is to put each of these choices on a separate line.
👎 Examples of incorrect code for this rule:
// eslint @peggyjs/separate-choices
foo = "bar" / "boo"
👍 Examples of correct code for this rule:
// eslint @peggyjs/separate-choices
foo
= "bar"
/ "boo"
See Settings.