Skip to content

Commit

Permalink
feat: add object-curly-newline rule
Browse files Browse the repository at this point in the history
  • Loading branch information
Talent30 committed Nov 4, 2023
1 parent 7d89a3d commit 27a1008
Showing 1 changed file with 25 additions and 2 deletions.
27 changes: 25 additions & 2 deletions index.js
Expand Up @@ -420,8 +420,31 @@ 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: 2,
consistent: true,
},
ObjectPattern: {
multiline: true,
minProperties: 4,
consistent: true,
},
ImportDeclaration: {
multiline: true,
minProperties: 4,
consistent: true,
},
ExportDeclaration: {
multiline: true,
minProperties: 2,
consistent: true,
},
},
],
'one-var': [
'error',
'never',
Expand Down

0 comments on commit 27a1008

Please sign in to comment.