1

I'm able to use stylelint for .css files according to their usage guide. Is there any way to use it for inline and internal stylesheets? I could write code to collect all those by parsing my HTML documents... is that my only option? Do I have to use another CSS linting tool like CSSLint?

TylerH
  • 20,799
  • 66
  • 75
  • 101
at.
  • 50,922
  • 104
  • 292
  • 461
  • Seems like there's a FAQ for style tags: http://stylelint.io/user-guide/faq/#how-do-i-lint-styles-within-style-tags. I would doubt that they have the ability to lint inline style attributes because, you know, you're not supposed to use those? – Heretic Monkey Dec 20 '16 at 19:14

1 Answers1

1

Yes, use the stylelint processor stylelint-processor-html

See also http://stylelint.io/user-guide/processors/ for a list of other stylelint processors.

netweb
  • 622
  • 5
  • 12