首页 > 其他 > 详细

Eslint 允许双等号

时间:2019-10-14 14:36:25      阅读:1023      评论:0      收藏:0      [点我收藏+]
资料 网址
ESlint: Expected !== and instead saw != https://stackoverflow.com/questions/48375316/eslint-expected-and-instead-saw?answertab=votes#tab-top
Configuring Rules https://cn.eslint.org/docs/user-guide/configuring#configuring-rules
要求使用 === 和 !== (eqeqeq) https://cn.eslint.org/docs/rules/eqeqeq
'eqeqeq': 'off'
  • ESLint 附带有大量的规则。你可以使用注释或配置文件修改你项目中要使用的规则。要改变一个规则设置,你必须将规则 ID 设置为下列值之一:
    "off" 或 0 - 关闭规则
    "warn" 或 1 - 开启规则,使用警告级别的错误:warn (不会导致程序退出)
    "error" 或 2 - 开启规则,使用错误级别的错误:error (当被触发的时候,程序会退出)

    出处:https://cn.eslint.org/docs/user-guide/configuring#configuring-rules

Eslint 允许双等号

原文:https://www.cnblogs.com/cag2050/p/11670961.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!