[英]Does a validator/linter for Google's HTML/CSS/JS style guides exist?
I've been looking around for ages, but I can't seem to find any validators for these. 我已经寻找了很多年了,但似乎找不到任何验证器。 I'm looking for similar to PHP_CodeSniffer . 我在寻找与PHP_CodeSniffer类似的东西。
I'm talking about the following style guides: 我正在谈论以下样式指南:
Does anybody know of one (or some)? 有人知道一个(或几个)吗? Am I just not looking properly? 我只是看起来不正常吗?
Thanks in advance! 提前致谢!
You can configure the linter in your IDE to use the google style guide . 您可以在IDE中配置linter以使用google样式指南 。
create or edit your package,json with: 使用以下命令创建或编辑您的包,json:
"eslintConfig": {
"extends": "google"
}
and then install the packages that your IDE will use to lint. 然后安装您的IDE将用于皮棉的软件包。
( your IDE will use node to lint, eg sublimelinter with contrib-eslint ) (您的IDE将使用node进行操作,例如sublimelinter和contrib-eslint )
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.