ecomfe / eslint-config

eslint shareable config for efe
MIT License
118 stars 31 forks source link

space-before-function-paren 增加对于async函数的支持 #34

Closed franckchen closed 3 years ago

franckchen commented 3 years ago
// bad
var foo = async() => 1;

// good
var foo = async () => 1

https://eslint.org/docs/rules/space-before-function-paren 规则链接

https://eslint.org/blog/2016/10/eslint-v3.8.0-released#eslint-v380-released 特意查了一下,这个feature3.8.0就支持了,规范中应该加上了

准备PR