Require (or disallow) line breaks after and before curly brackets used in attribute values and inside {{ }} expressions. (Although not for the handlebars themselves!)
There is already a similar rule for square brackets for arrays: vue/array-bracket-newline. But the corresponding rule for curly brackets is missing.
The @stylistic/curly-newline rule already exists for this purpose, and it's is helpful for standardizing how multi-line blocks are broken across lines. In Vue templates, this is most commonly needed in style objects or property-bag parameters to functions.
What category should the rule belong to?
[x] Enforces code style (layout)
[ ] Warns about a potential error (problem)
[ ] Suggests an alternate way of doing something (suggestion)
[ ] Other (please specify:)
Provide 2-3 code examples that this rule should warn about:
Please describe what the rule should do:
Require (or disallow) line breaks after and before curly brackets used in attribute values and inside
{{ }}
expressions. (Although not for the handlebars themselves!)There is already a similar rule for square brackets for arrays: vue/array-bracket-newline. But the corresponding rule for curly brackets is missing.
The
@stylistic/curly-newline
rule already exists for this purpose, and it's is helpful for standardizing how multi-line blocks are broken across lines. In Vue templates, this is most commonly needed in style objects or property-bag parameters to functions.What category should the rule belong to?
[x] Enforces code style (layout) [ ] Warns about a potential error (problem) [ ] Suggests an alternate way of doing something (suggestion) [ ] Other (please specify:)
Provide 2-3 code examples that this rule should warn about:
Additional context