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

Feature request: QualifyingElement tag whitelist

Open deepfriedmind opened this issue 9 years ago • 2 comments

I think it would be great if one could provide a tag whitelist for the QualifyingElement linter. For example, I would like to be able to use a selector like html.no-csstransforms3d (because I prefer to be explicit in this case) without warnings, but have warnings enabled for all other tags.

deepfriedmind avatar Jul 08 '15 17:07 deepfriedmind

Not a bad idea. Consider Bootstrap's button styles which can be applied to <a>, <button>, and <input>, and there might be reasons to choose <a> in some cases and <input> in others... (is that true?), and then style a.btn differently from input.btn.

Same with other elements that play similar semantic roles but maybe should be styled differently, like <th> and <td>, or <p>, <li>, and <blockquote>. This is all pretty handwavey... I don't have any great examples.

srawlins avatar Jul 09 '15 00:07 srawlins

I think this makes sense. We'd be happy to accept a pull request that adds this functionality.

lencioni avatar Jul 09 '15 15:07 lencioni