简体   繁体   中英

Possible to use stylelint for internal and inline stylesheets?

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?

Yes, use the stylelint processor stylelint-processor-html

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM