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.
解決方法:webpack
由於設置了eslint,若是不想有規範的js代碼,能夠從新初始化關掉eslint。
Use ESLint to lint your code? (Y/n) 這一步選noweb
在bulid/webpack.base.conf.js裏面有配置以下:
module: {
rules: [
..(config.dev.useEslint ? [createLintingRule()] : []),spa
點進config.dev.useEslint,發如今config/index.js裏配置
useEslint: true, // 改成false便可。eslint