nuxt 關閉ESlint 語法檢測

  學習nuxt中在本身編寫search組件的時候出現了各類相似於Expected indentation of 0 spaces but found 4的問題segmentfault

 

上網搜是由於ESlint語法檢測產生的問題,以爲ESlint對於我這樣的新手太嚴格了。。。因而想弄掉學習

在eslintrc.js中註釋掉了ruleui

發現好像並無論用。。。繼續報錯,找到了nuxt.config.js,並註釋了spa

build中的內容nuxt

 

自動重啓服務,沒有報錯。3d

 

 

 

 

 

 

參考 https://segmentfault.com/q/1010000011208449 中的問答eslint

相關文章
相關標籤/搜索