mirror of
https://github.com/airbnb/javascript.git
synced 2026-04-25 03:00:19 -04:00
Merge pull request #605 from airbnb/ljharb/fix_function_spacing
[breaking] Require function spacing: `function <optional name>(`
This commit is contained in:
@@ -96,8 +96,9 @@ module.exports = {
|
||||
// require or disallow space before blocks
|
||||
'space-before-blocks': 2,
|
||||
// require or disallow space before function opening parenthesis
|
||||
'space-before-function-paren': [2, 'never'],
|
||||
// disallow spaces inside parentheses
|
||||
// https://github.com/eslint/eslint/blob/master/docs/rules/space-before-function-paren.md
|
||||
'space-before-function-paren': [2, { 'anonymous': 'always', 'named': 'never' }],
|
||||
// require or disallow spaces inside parentheses
|
||||
'space-in-parens': [2, 'never'],
|
||||
// require spaces around operators
|
||||
'space-infix-ops': 2,
|
||||
|
||||
Reference in New Issue
Block a user