stylefmt
stylefmt copied to clipboard
Support to formatting LESS code
PostCSS LESS Syntax: https://github.com/webschik/postcss-less
I'm trying to run stylefmt
on my .less
files, but it just outputs an empty file. I thought less was going to be automatically supported by virtue of the fact that stylefmt
uses PostCSS, which does support less
@cwick Now, stylefmt dose not support PostCSS syntax of Less. Sorry, please wait until the next minor update.
@morishitter I've got it working with less fine, passing in a stylelint config file, and changing things throughout my less like indentation etc. The only thing I've noticed is inline styles that are multiline such as
// this is a comment
// here is another
// and one more
will become
// this is a comment
// here is another
// and one more
No changes to my config file are affecting this output.
@robbyking3 Inline comments are used in SCSS syntax, so stylefmt can format it. Some Less syntaxes are used in the other one, but we cannot format all of Less code.
Sorry, please wait until the next minor update.
@morishitter Planned to add syntax less?
@morishitter I'd love to see the less
syntax. Any updates about this?
Hi. Any updates here? Is anybody working on it or not?
@SanichKotikov,
Now postcss-less
is broken. See Issues and Pull Requests.
Any plans to support this at some point? Is there any other tool out there that formats less code?
@vladimir-polyakov We have supported .less and .pcss files extentions by https://github.com/morishitter/stylefmt/pull/301 but stylefmt can't format all of less and postcss plugins customized syntaxes.
Is there any other tool out there that formats less code?
I'm sorry, I don't know ;(
@morishitter Hi, I'm using stylelint on my LESS codebase and now I want to start using stylefmt but I have a problem that it doesn't understand LESS default mixins syntax.
-
- I'm getting this CSSSyntaxError on every usage of a LESS mixin.
Do you plan to support/fix this? Or is there any way how I can use stylefmt directly on my LESS codebase? Thank you for your reply ;-)
Hi!
Any update on this?
I`m using stylefmt VS Code (1.19.2) plugin (2.5.0) and getting this error for every LESS mixin usage.