Skip to content

Commit c5d55db

Browse files
Cosmic-Ryverljharb
authored andcommitted
[eslint config] [base] [patch] Improve function-paren-newline with multiline-arguments option
Related to airbnb#1731
1 parent 82dbec3 commit c5d55db

File tree

1 file changed

+2
-2
lines changed
  • packages/eslint-config-airbnb-base/rules

1 file changed

+2
-2
lines changed

packages/eslint-config-airbnb-base/rules/style.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,9 +101,9 @@ module.exports = {
101101
// TODO: enable
102102
'func-style': ['off', 'expression'],
103103

104-
// enforce consistent line breaks inside function parentheses
104+
// require line breaks inside function parentheses if there are line breaks between parameters
105105
// https://eslint.org/docs/rules/function-paren-newline
106-
'function-paren-newline': ['error', 'consistent'],
106+
'function-paren-newline': ['error', 'multiline-arguments'],
107107

108108
// Blacklist certain identifiers to prevent them being used
109109
// https://eslint.org/docs/rules/id-blacklist

0 commit comments

Comments
 (0)