SimenB / stylint

Improve your Stylus code with Stylint
https://simenb.github.io/stylint/
GNU General Public License v2.0
348 stars 62 forks source link

Auto-fix "sortOrder" #405

Closed ThisIsManta closed 7 years ago

ThisIsManta commented 7 years ago

Fixing "sortOrder" manually was so painful and the linting report was not really informative, i.e. it did not tell which came before which.

Could we have a command-line, just like eslint --fix path-to-file, so that the linter will re-sort them automatically?

ThisIsManta commented 7 years ago

Never mind, I have created my own tool to re-format the whole Stylus file and also re-order the CSS properties. https://thisismanta.github.io/stylus-supremacy/

nojvek commented 6 years ago

@ThisIsManta - Your vscode extension is absolutely f***-ing awesome. Saved me hours, let me know if there is charity you'd like me to donate to.

Although I really would like a native stylint --fix option as well

ThisIsManta commented 6 years ago

@nojvek, I appreciate your favorable comment. It's very lovely to hear that my work worths a donation, but I'm financially stable and it was a part of my job, so I'm fine. Thank you!

Stylus Supremacy is also available in Node.js module as well, so you can batch formatting Stylus files. I believe this is the closest thing to stylint --fix.

nojvek commented 6 years ago

Yeah I just used that to format close to 500 files. Since I didn’t have to write my own style fixer you saved me a day of hell.

Also the vscode plugin is fantastic. Thanks a million for working on it.