Current version of Prettier is adding a space after unary minus operator in LESS.
Config:
module.exports = {
tabWidth: 4,
overrides: [
{
files: ['*.less'],
options: {
parser: 'less',
},
},
],
};
Wrong autoformat:
.xxx {
- margin: 0 -(@arrowBorderWidth / 2) 0 0;
+ margin: 0 - (@arrowBorderWidth / 2) 0 0;
}
I would expect no fix/added space.
Current version of Prettier is adding a space after unary minus operator in LESS.
Config:
Wrong autoformat:
.xxx { - margin: 0 -(@arrowBorderWidth / 2) 0 0; + margin: 0 - (@arrowBorderWidth / 2) 0 0; }I would expect no fix/added space.