"space-before-function-paren": ["error", "always"],
时间: 2023-08-24 08:04:33 浏览: 146
finn-vs-zombies.paren:技术实验
回答: "space-before-function-paren": ["error", "always"] 这个规则要求在函数的参数列表前必须有一个空格。如果你想要应用这个规则,你可以打开 .eslintrc.js 文件,并在rules中添加如下一行代码:'space-before-function-paren': ['error', 'always']。这样做将会使该规则生效,并要求你在函数参数列表前添加一个空格。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* [Missing space before function parentheses.eslint(space-before-function-paren)](https://blog.csdn.net/qq_34803821/article/details/85121690)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT0_1"}}] [.reference_item style="max-width: 50%"]
- *2* *3* [ESLint 中的“ space-before-function-paren ”相关报错及其解决方案](https://blog.csdn.net/qq_57587705/article/details/124735932)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT0_1"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文