Skip to content

Commit

Permalink
Add object-curly-newline rule (#83)
Browse files Browse the repository at this point in the history
Co-authored-by: Sindre Sorhus <[email protected]>
  • Loading branch information
Talent30 and sindresorhus authored Nov 11, 2023
1 parent 7d89a3d commit 3a5448b
Showing 1 changed file with 24 additions and 2 deletions.
26 changes: 24 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down

0 comments on commit 3a5448b

Please sign in to comment.