版权声明:转载请注明出处,谢谢! https://blog.csdn.net/dreamstone_xiaoqw/article/details/90453293
vscode环境开发vue-cli脚手架工程,eslint规范检查工具告警笔记
告警
告警内容:
✘ http://eslint.org/docs/rules/space-infix-ops Infix operators must be spaced
src\components\question.vue:83:35
console.log(this.g_qid+" : "+score)
^
这行警告的关键信息:
Infix operators must be spaced
百度翻译如下:
中缀运算符必须有间隔
用代码来说明,即:将
console.log(this.g_qid+" : "+score)
^
修改为
console.log(this.g_qid + " : " + score)
^
即可。(vscode邮件自动格式化很方便)
官网指南
这个告警官网的说明个人感觉不是很好,仅挑选两行代码做示例:
a + b
a ? b : c
就是这个意思。