一、问题描述:
使用eslint时,严格模式下,报错Missing space before function parentheses的问题,意思是在方法名和刮号之间需要有一格空格。
二、解决方案:
在eros代码目录中,打开.eslint文件,并在rules中添加如下一行代码即可:
"space-before-function-paren": 0,
参考博文:
https://www.jianshu.com/p/2f5cded8a2d3
一、问题描述:
使用eslint时,严格模式下,报错Missing space before function parentheses的问题,意思是在方法名和刮号之间需要有一格空格。
二、解决方案:
在eros代码目录中,打开.eslint文件,并在rules中添加如下一行代码即可:
"space-before-function-paren": 0,
参考博文:
https://www.jianshu.com/p/2f5cded8a2d3
相关文章: