美文网首页
新项目配置eslint

新项目配置eslint

作者: _feest | 来源:发表于2021-07-26 11:22 被阅读0次

vcscode 新建vue项目的时候就开启eslint 校验。

配置不使用检验的文件
.eslintignore:写上不想使用eslint的文件夹路径

vscode 自动修复 eslint 验证

首页 > 首选项 > 设置 > eslint  
打开json文件,找到  
"editor.codeActionsOnSave": {
    "source.fixAll.eslint": true
 },

重启项目即可

相关文章

网友评论

      本文标题:新项目配置eslint

      本文链接:https://www.haomeiwen.com/subject/trnwmltx.html