Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support to formatting LESS code #75

Open
matype opened this issue Mar 7, 2016 · 12 comments
Open

Support to formatting LESS code #75

matype opened this issue Mar 7, 2016 · 12 comments

Comments

@matype
Copy link
Owner

matype commented Mar 7, 2016

PostCSS LESS Syntax: https://github.com/webschik/postcss-less

@cwick
Copy link

cwick commented Apr 22, 2016

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

@matype
Copy link
Owner Author

matype commented Apr 26, 2016

@cwick Now, stylefmt dose not support PostCSS syntax of Less. Sorry, please wait until the next minor update.

@robbyking3
Copy link

@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.

@matype
Copy link
Owner Author

matype commented May 14, 2016

@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.

@Tom910
Copy link

Tom910 commented Jul 11, 2016

Sorry, please wait until the next minor update.

@morishitter Planned to add syntax less?

@qmmr
Copy link

qmmr commented Dec 5, 2016

@morishitter I'd love to see the less syntax. Any updates about this?

@SanichKotikov
Copy link

Hi. Any updates here? Is anybody working on it or not?

@mrmlnc
Copy link
Contributor

mrmlnc commented Mar 16, 2017

@SanichKotikov,

Now postcss-less is broken. See Issues and Pull Requests.

@vladtar
Copy link

vladtar commented May 31, 2017

Any plans to support this at some point? Is there any other tool out there that formats less code?

@matype
Copy link
Owner Author

matype commented Jun 1, 2017

@vladimir-polyakov We have supported .less and .pcss files extentions by #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 ;(

@ondrejs2
Copy link

ondrejs2 commented Jul 6, 2017

@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.

  • less mixins errors
  • 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 ;-)

@Front-start
Copy link

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.
less

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

10 participants