Skip to content

Commit ab83721

Browse files
committed
Update space-before-function-paren rule
1 parent 72ec6a6 commit ab83721

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

index.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,11 @@ module.exports = {
143143
'space-before-blocks': ['error', 'always'],
144144

145145
// Disallow a space before function parenthesis
146-
'space-before-function-paren': ['error', 'never'],
146+
'space-before-function-paren': ['error', {
147+
'named': 'never',
148+
'anonymous': 'never',
149+
'asyncArrow': 'always',
150+
}],
147151

148152
// Disallow spaces inside of parentheses
149153
'space-in-parens': 'error',

0 commit comments

Comments
 (0)