使用严格模式eslint时,报错Missing space before function parentheses的问题
一、问题描述:
使用eslint时,严格模式下,报错Missing space before function parentheses的问题,意思是在方法名和刮号之间需要有一格空格。
二、解决方案:
在eros代码目录中,打开.eslint文件,并在rules中添加如下一行代码即可:
"space-before-function-paren": 0,
参考博文:
https://www.ji...
翻译
2019-04-29 23:21:48 ·
4002 阅读 ·
0 评论