Vue運行報錯--eslint


Errors:?
1? http://eslint.org/docs/rules/no-trailing-spaces
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,如果不想有規范的js代碼,可以重新初始化關掉eslint。
Use ESLint to lint your code? (Y/n) 這一步選no

在bulid/webpack.base.conf.js里面有配置如下:
module: {
rules: [
..(config.dev.useEslint ? [createLintingRule()] : []),

點進config.dev.useEslint,發現在config/index.js里配置
useEslint: true, // 改為false即可。


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM