简体   繁体   English

可以将stylelint用于内部和内联样式表吗?

[英]Possible to use stylelint for internal and inline stylesheets?

I'm able to use stylelint for .css files according to their usage guide. 我可以根据它们的使用指南将stylelint用于.css文件。 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? 我可以编写代码以通过解析HTML文档来收集所有代码...这是我唯一的选择吗? Do I have to use another CSS linting tool like CSSLint? 我是否必须使用另一个CSS linting工具,例如CSSLint?

Yes, use the stylelint processor stylelint-processor-html 是的,请使用stylelint处理器stylelint-processor-html

See also http://stylelint.io/user-guide/processors/ for a list of other stylelint processors. 有关其他stylelint处理器的列表,另请参见http://stylelint.io/user-guide/processors/

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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