安装就不说了,安装后打开 vscodeQ 设置,搜索eslint,然后点击setting.json
写入如下代码
{ "eslint.enable": true, "eslint.run": "onType", "eslint.options": { "extensions": [ ".js", ".vue", ".jsx", ".tsx" ] }, "editor.codeActionsOnSave": { "source.fixAll.eslint": true } }
安装就不说了,安装后打开 vscodeQ 设置,搜索eslint,然后点击setting.json
写入如下代码
{ "eslint.enable": true, "eslint.run": "onType", "eslint.options": { "extensions": [ ".js", ".vue", ".jsx", ".tsx" ] }, "editor.codeActionsOnSave": { "source.fixAll.eslint": true } }