Eslint 允许双等号

资料 网址
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

猜你喜欢

转载自www.cnblogs.com/cag2050/p/11670961.html