屏蔽eslint代码格式报错

1、在文件中找到node_modules

 

2、node_modules文件夹下的eslint-config-standard

 

3、打开eslint-config-standard文件夹下的eslintrc.json

 

4、在eslintrc.json的“rules”部分可以修改

 

把想屏蔽的错误的error改成off就可以屏蔽掉了

eg:
"no-irregular-whitespace": "error",
改成:"no-irregular-whitespace": "off",

 

posted @ 2019-04-11 15:55  江寒7  阅读(978)  评论(0编辑  收藏  举报