安装eslint
1.全局安装eslint
npm install eslint -g
2.vscode安装eslint插件
- 配置setting.json
"eslint.validate": [ "javascript", "javascriptreact", "html", "jsx", "vue" ]
1.全局安装eslint
npm install eslint -g
2.vscode安装eslint插件
"eslint.validate": [ "javascript", "javascriptreact", "html", "jsx", "vue" ]