一、问题描述:
![](https://img.haomeiwen.com/i3169108/9d5306b9510cf351.png)
- 使用eslint时,严格模式下,报错Missing space before function parentheses的问题,意思是在方法名和刮号之间需要有一格空格。
二、解决方案:
![](https://img.haomeiwen.com/i3169108/3843850892c34ddb.png)
- 在eros代码目录中,打开.eslint文件,并在
rules
中添加如下一行代码即可:
"space-before-function-paren": 0
rules
中添加如下一行代码即可: "space-before-function-paren": 0
本文标题:使用严格模式eslint时,报错Missing space be
本文链接:https://www.haomeiwen.com/subject/piidfqtx.html
网友评论