老师我有个疑问?
✘ 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.
老师这个警告问题,我从问答区里看到,是可以关闭的,当我项目完成后,是否可以通过npm run lint -- --fix
从新规范代码?
正在回答 回答被采纳积分+1
- 参与学习 人
- 提交作业 239 份
- 解答问题 10739 个
本阶段带你深入前端开发的肌理,通过ES6基础知识和前端主流高级框架的学习,助你快速构建企业级移动webAPP应用,进入职场的终极battle
了解课程
恭喜解决一个难题,获得1积分~
来为老师/同学的回答评分吧
0 星