csscomb / csscomb.js

CSS coding style formatter
http://csscomb.com/
MIT License
3.29k stars 457 forks source link

Support interpolation in property names for SCSS with camel case #455

Open jwfwessels opened 8 years ago

jwfwessels commented 8 years ago

I am using css comb via atom-css-comb.

interpolated selector names. are being reduced to lowercase instead of respecting camelCase naming, is this expected behaviour?

before

#{$blockname}-fooBar{

}

expected

#{$blockname}-fooBar {

}

result:

#{$blockname}-foobar {

}

update

upon further investigation it seems to only affect some cases

before

&-iconLink{}
&-thumbnailsToggler{}

expected

&-iconLink{}
&-thumbnailsToggler{}

result

&-iconLink{}
&-thumbnailstoggler{}

very odd >_<

--- Want to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/32364395-support-interpolation-in-property-names-for-scss-with-camel-case?utm_campaign=plugin&utm_content=tracker%2F214563&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F214563&utm_medium=issues&utm_source=github).
fly1ted commented 8 years ago

I've removed "element-case": "lower" from my config for now.