在vscode中配置ESLint

1.下载插件

image-20210920202225633

2.打开settings.json

左下角设置-----》然后右上角“打开设置(json)”

image-20210920202623354

新增如下:

"editor.codeActionsOnSave": {
    // ESLint 插件的配置
    "source.fixAll": true
},
// 开启保存自动格式化
"editor.formatOnSave": true
posted @ 2021-09-20 21:08  青柠i  阅读(143)  评论(0)    收藏  举报