nuxt 关闭ESlint 语法检测

  学习nuxt中在自己编写search组件的时候出现了各种类似于Expected indentation of 0 spaces but found 4的问题

 

上网搜是因为ESlint语法检测产生的问题,觉得ESlint对于我这样的新手太严格了。。。于是想弄掉

在eslintrc.js中注释掉了rule

发现好像并不管用。。。继续报错,找到了nuxt.config.js,并注释了

build中的内容

 

自动重启服务,没有报错。

 

 

 

 

 

 

参考 https://segmentfault.com/q/1010000011208449 中的问答

 

posted @ 2019-05-14 20:44  #Rao  阅读(1079)  评论(0编辑  收藏  举报