Skip to content

Commit

Permalink
feat: add object-curly-newline rule xojs#82
Browse files Browse the repository at this point in the history
  • Loading branch information
Talent30 authored Nov 4, 2023
1 parent 7d89a3d commit 47369d7
Showing 1 changed file with 25 additions and 2 deletions.
27 changes: 25 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
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 47369d7

Please sign in to comment.