From a100a3957ffb11c841dbd74a649cbb9b5a17a2aa Mon Sep 17 00:00:00 2001 From: Remco Haszing Date: Thu, 1 Mar 2018 14:33:02 +0100 Subject: [PATCH] [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. --- packages/eslint-config-airbnb-base/rules/style.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/eslint-config-airbnb-base/rules/style.js b/packages/eslint-config-airbnb-base/rules/style.js index bc5e032e..12cd60d5 100644 --- a/packages/eslint-config-airbnb-base/rules/style.js +++ b/packages/eslint-config-airbnb-base/rules/style.js @@ -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.