Skip to content

Commit f88fc21

Browse files
authored
Merge pull request #9 from InterNations/async-arrow-func
Allow space after async for async arrow functions
2 parents dcabdf5 + 4a971f6 commit f88fc21

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

lib/recommended-rules.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,11 @@ module.exports = {
3030

3131
'rules': {
3232
// Disallow spaces between the function name or function keyword and the opening parenthesis
33-
"space-before-function-paren": ["error", "never"],
33+
"space-before-function-paren": ["error", {
34+
"anonymous": "never",
35+
"named": "never",
36+
"asyncArrow": "always",
37+
}],
3438

3539
// Require return statements to either always or never specify values
3640
'consistent-return': 'off',

0 commit comments

Comments
 (0)