mirror of
https://github.com/airbnb/javascript.git
synced 2026-01-14 17:18:19 -05:00
[eslint config] [base] [breaking] Update object-curly-newline to match eslint 4.18.0
In eslint v4.18.0 separate settings are introduced for imports and exports for the `object-curly-newline` rule. Without this change, there is different behavior when updating eslint to this version.
This commit is contained in:
committed by
Jordan Harband
parent
55adae99c9
commit
a100a3957f
@@ -383,7 +383,9 @@ module.exports = {
|
||||
// https://eslint.org/docs/rules/object-curly-newline
|
||||
'object-curly-newline': ['error', {
|
||||
ObjectExpression: { minProperties: 4, multiline: true, consistent: true },
|
||||
ObjectPattern: { minProperties: 4, multiline: true, consistent: true }
|
||||
ObjectPattern: { minProperties: 4, multiline: true, consistent: true },
|
||||
ImportDeclaration: { minProperties: 4, multiline: true, consistent: true },
|
||||
ExportDeclaration: { minProperties: 4, multiline: true, consistent: true },
|
||||
}],
|
||||
|
||||
// enforce "same line" or "multiple line" on object properties.
|
||||
|
||||
Reference in New Issue
Block a user