Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com> Co-authored-by: fisker <lionkay@gmail.com>
32 lines
459 B
Markdown
32 lines
459 B
Markdown
#### Keep property/variable accessors tight (#17983 by @kovsu)
|
|
|
|
<!-- prettier-ignore -->
|
|
```less
|
|
// Input
|
|
.average(@x, @y) {
|
|
@result: ((@x + @y) / 2);
|
|
}
|
|
|
|
div {
|
|
padding: .average(16px, 50px) [ @result ];
|
|
}
|
|
|
|
// Prettier stable
|
|
.average(@x, @y) {
|
|
@result: ((@x + @y) / 2);
|
|
}
|
|
|
|
div {
|
|
padding: .average(16px, 50px) [ @result];
|
|
}
|
|
|
|
// Prettier main
|
|
.average(@x, @y) {
|
|
@result: ((@x + @y) / 2);
|
|
}
|
|
|
|
div {
|
|
padding: .average(16px, 50px)[@result];
|
|
}
|
|
```
|