eslint

大家先装上npm I eslint@4 -g;
然后在你的项目下执行eslint init;
然后vscode上装eslint插件
然后在vscode中按comand+“,” 打开面板, 修成"eslint.autoFixOnSave"的值为true

原文地址:https://www.cnblogs.com/rubylouvre/p/7280219.html