Use // eslint-disable-next-line to ignore the next line.解決辦法

npm start 啓動服務的時候,出現了一下報錯:

You may use special comments to disable some warnings.
Use // eslint-disable-next-line to ignore the next line.
Use /* eslint-disable */ to ignore all warnings in a file.
都是因爲開啓了eslint 編碼規範檢查


You may use special comments to disable some warnings.
Use // eslint-disable-next-line to ignore the next line.
Use /* eslint-disable */ to ignore all warnings in a file.
 


解決辦法:

1.找到webpack.base.conf.js文件:

找到這行代碼註釋掉就可以了!!


 //...(config.dev.useEslint ? [createLintingRule()] : []),
示例如下:

 2.npm start 執行之後就正常運行了!!
————————————————
版權聲明:本文爲CSDN博主「S筱瀟S四維Smile」的原創文章,遵循 CC 4.0 BY-SA 版權協議,轉載請附上原文出處鏈接及本聲明。
原文鏈接:https://blog.csdn.net/qq_29483485/article/details/83062765

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章