简体   繁体   English

如何使用jshint忽略所有警告?

[英]How to ignore all warnings with jshint?

Is it possible to ignore all warnings with jshint without making such a config file: 是否可以忽略jshint的所有警告而不制作这样的配置文件:

{
        ...
    "-W039": false
    "-W040": false
    "-W041": false
    "-W042": false
        ...
}

During development or debugging it can be useful to suppress everything or a part of the file. 在开发或调试期间,禁止文件的全部或部分是有用的。

Wrap whichever code block you want to ignore in: 在以下内容中包含您要忽略的代码块:

/* jshint ignore:start */
<code here>
/* jshint ignore:end */

Don't forget to remove this pre production though! 不要忘记删除这个前期制作!

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

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