手賤,升級(jí)vue-cli到3.
然后排錯(cuò)排了一下午,總體上來說升級(jí)3優(yōu)點(diǎn)大于缺點(diǎn)
這里說下cli3中如何禁用 寫代碼時(shí)的唐僧--eslint
-
使用配置文件來選擇禁用范圍
創(chuàng)建文件.eslintignore
加入如下內(nèi)容**/*.js **/*.vue -
禁用下一行
// eslint-disable-next-line to ignore the next line. console.log("這行esline不檢查") -
禁用整個(gè)js文件
/* eslint-disable */ console.log("整個(gè)文件都忽略eslint檢查")