diff --git a/index.js b/index.js index fe79b0c..def0046 100644 --- a/index.js +++ b/index.js @@ -420,8 +420,30 @@ module.exports = { 'error', 'never', ], - // Disabled because of https://github.com/xojs/eslint-config-xo/issues/27 - // 'object-property-newline': 'error', + 'object-curly-newline': [ + 'error', + { + ObjectExpression: { + multiline: true, + minProperties: 4, + consistent: true, + }, + ObjectPattern: { + multiline: true, + consistent: true, + }, + ImportDeclaration: { + multiline: true, + minProperties: 4, + consistent: true, + }, + ExportDeclaration: { + multiline: true, + minProperties: 4, + consistent: true, + }, + }, + ], 'one-var': [ 'error', 'never',