Add support for Sass and LESS specific stuff & minor config changes. #4
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
I guess it would be cool to make possible to sort pre-processor specific rules: includes, mixins and extends. I've added an array into
sort-order
. This is kinda new feature, so maybe the version should be updated to 1.1.0, according to Semantic Versioning.Almost everybody sort their CSS, or SCSS or whatever on purpose. That purpose would be style guide. One of the most popular ones is SMACSS, this book has a chapter about formatting code. I guess this kind of style guide would be appropriate so I changed
sort-order
a bit.I've changed
block-indent
andrule-indent
to fix an issue when you sort already indented Sass or LESS files, previous setup messed everything up.As for
stick-brace
key, it's value would be 1, because it's like global convention to use such a style, isn't it?