✘ 1 problem (1 error, 0 warnings)
Errors:
1 http://eslint.org/docs/rules/no-trailing-spaces
✘ http://eslint.org/docs/rules/no-trailing-spaces Trailing spaces not allowed
src/components/HelloWorld.vue:6:1
^
✘ http://eslint.org/docs/rules/eol-last Newline required at end of file but not found
src/components/HelloWorld.vue:16:10
✘ 2 problems (2 errors, 0 warnings)
Errors:
1 http://eslint.org/docs/rules/eol-last
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.
解决办法:
在 my-project/config/index.js里有配置:
useEslint: true, // 改为false即可。
然后重新执行 cnpm run dev
本博客所有文章除特别声明外,均采用 CC BY-SA 3.0协议 。转载请注明出处!