1慢显、統(tǒng)一用VScode編譯器
2塞耕、在VScode中安裝eslint插件
3闲擦、設(shè)置VScode冯勉,配置如下
{
"emmet.syntaxProfiles": {
"vue-html": "html",
"vue": "html"
},
"eslint.autoFixOnSave": true,
"eslint.validate": [
{
"language": "vue",
"autoFix": true
},
"html",
"vue",
"javascript",
"javascriptreact"
]
}
4、進(jìn)入項(xiàng)目文件夾亦镶,npm install
5日月、代碼寫完后按CTRL+ S后代碼會(huì)自動(dòng)整理