scss-lint icon indicating copy to clipboard operation
scss-lint copied to clipboard

Composes Order

Open scottwarren opened this issue 9 years ago • 4 comments

We have the declaration order as an error in our rule set, but once we add 'composes' (which as I understand it, needs to be first) the errors start rolling in. Is there anyway we can tell SCSS-Lint to ignore composes?

/cc @dane-harnett

scottwarren avatar Feb 01 '16 06:02 scottwarren

I assume you are referring to composes from CSS modules? You are correct that needs to be first. However, since CSS modules is relatively new, none of SCSS-Lint's rules are set up to handle it properly. We would be open to reviewing a PR that improves compatibility with CSS modules.

lencioni avatar Feb 01 '16 06:02 lencioni

Yep that's what I mean, I will look into creating this as a feature, but be aware Ruby isn't my first language :+1: :smile:

scottwarren avatar Feb 01 '16 06:02 scottwarren

We're running into this now as well, it's a really big downer. Any hints on how to add a temp ignore until there's an actual rule for it?

outdooricon avatar Sep 26 '16 12:09 outdooricon

The extra_properties solution takes care of one issue, but it still will complain if multiple composes are set inside of a single selector

outdooricon avatar Sep 26 '16 13:09 outdooricon