屏蔽eslint代碼格式報錯

一、在文件中找到node_modulesnode

 

二、node_modules文件夾下的eslint-config-standardjson

 

三、打開eslint-config-standard文件夾下的eslintrc.jsonspa

 

四、在eslintrc.json的「rules」部分能夠修改3d

 

把想屏蔽的錯誤的error改爲off就能夠屏蔽掉了eslint

eg:
"no-irregular-whitespace": "error",
改爲:"no-irregular-whitespace": "off",
相關文章
相關標籤/搜索