Prettier messing up .less files
See original GitHub issuePrettier messes up escape slashs in less files:
VSCode last version. Prettier last version.
Source:
.figcaption {
.margin-top-1\/2;
.large\:none;
}
Format:
.figcaption {
.margin-top-1\ / 2;
.large\: none;
}
Issue Analytics
- State:
- Created 5 years ago
- Comments:6 (4 by maintainers)
Top Results From Across the Web
Prettier not formatting LESS files - visual studio code
If I manually run "Format document with..." and choose Prettier, it works fine. Less files are selected under the settings auto-format options, ...
Read more >Options - Prettier
Prettier can insert a special @format marker at the top of files specifying that the file has been formatted with Prettier. This works...
Read more >Formatting your code is a waste of time - use Prettier instead
Prettier helps format our code, and also should help take the argument away from how our code is formatted in the first place...
Read more >How To Setup Prettier - YouTube
Prettier is one of my favorites tools for writing clean and easy to read ... Ignoring Files 08:00 - Configuration Options 09:55 -...
Read more >I don't like prettier : r/javascript - Reddit
The more Prettier deviates from well-established JS formatting, the less I ... If the file was already formatted with prettier, this doesn't really...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
This is a valid less mixin:
This is a valid less class declaration:
That will produce the following css:
Prettier also messes up mixins like
.large\:none()
.@evilebottnawi I’m guessing that it’s used to include all the styles for the classes
margin-top-1/2
andlarge:none
in thefigcaption
class.