idok / scss-lint-plugin

SCSS Lint plugin for intellij
http://plugins.jetbrains.com/plugin/7530
93 stars 8 forks source link

CSS Properties Order #2

Closed pavelbinar closed 10 years ago

pavelbinar commented 10 years ago

Hi,

Thanks for this great plugin! My common SCSS Lint warning is: "Properties should be sorted in order, with vendor-prefixed extensions before the standardized CSS property"

https://github.com/causes/scss-lint/blob/master/lib/scss_lint/linter/property_sort_order.rb#L136-L137

Do you know any tool / plugin for WebStorm which is doing such CSS sorting?

idok commented 10 years ago

Thanks for the feedback, I'm happy to hear you find the plugin useful. I've received other requests regarding this issue and I'm considering adding a quick fix to sort properties in a future version.

rousso1 commented 10 years ago

+1

pavelbinar commented 10 years ago

Brilliant! Thank you. :+1:

pavelbinar commented 10 years ago

How is it going to work in future version? Any time estimate for next version release?

idok commented 10 years ago

Version 1.0.8 is available. http://plugins.jetbrains.com/plugin/7530

pavelbinar commented 10 years ago

Nice, thanks. How shall I use it? I have latest version and I see the SCSS Lint message about properties sorting.

How can I sort them?

idok commented 10 years ago

Place cursor on the lint error, alt+enter will open the quick fix menu, select 'Sort Properties' screen shot 2014-10-06 at 14 16 17

pavelbinar commented 10 years ago

:+1: got it! Thanks. BTW: I use "Reformat Code" feature in WebStorm which sorts the properties not according to SCSS Lint. Perhaps I shall file the an feature request...