一直报这个错误
来源:2-4 初始化项目
慕尼黑5444710
2019-08-20 09:30:08
✘ http://eslint.org/docs/rules/no-multiple-empty-lines More than 1 blank line not allowed
src\router\index.js:3:1
^
✘ http://eslint.org/docs/rules/no-trailing-spaces Trailing spaces not allowed
src\router\index.js:9:1
^
✘ 2 problems (2 errors, 0 warnings)
Errors:
1 http://eslint.org/docs/rules/no-trailing-spaces
1 http://eslint.org/docs/rules/no-multiple-empty-lines
✘ http://eslint.org/docs/rules/no-trailing-spaces Trailing spaces not allowed
src\App.vue:3:1
^
✘ http://eslint.org/docs/rules/no-multiple-empty-lines More than 1 blank line not allowed
src\App.vue:3:1
^
✘ http://eslint.org/docs/rules/no-trailing-spaces Trailing spaces not allowed
src\App.vue:4:1
^
✘ http://eslint.org/docs/rules/no-multiple-empty-lines Too many blank lines at the end of file. Max of 0 allowed
src\App.vue:13:1
^
✘ 4 problems (4 errors, 0 warnings)
Errors:
2 http://eslint.org/docs/rules/no-multiple-empty-lines
2 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.
1回答
同学你好, 这些不是报错, 是eslint检测之后的警告,可以不用管哦。
如果想要不显示这些警告,可以关闭配置中:
然后重新启动项目就可以啦。
如果帮助到了你, 欢迎采纳!
祝学习愉快~~~
相似问题