-
-
Notifications
You must be signed in to change notification settings - Fork 4.6k
Labels
lang:lessIssues affecting Less-specific syntax (not plain CSS)Issues affecting Less-specific syntax (not plain CSS)locked-due-to-inactivityPlease open a new issue and fill out the template instead of commenting.Please open a new issue and fill out the template instead of commenting.
Description
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.
Metadata
Metadata
Assignees
Labels
lang:lessIssues affecting Less-specific syntax (not plain CSS)Issues affecting Less-specific syntax (not plain CSS)locked-due-to-inactivityPlease open a new issue and fill out the template instead of commenting.Please open a new issue and fill out the template instead of commenting.