Skip to content

Commit

Permalink
Add rules for object-curly-newline
Browse files Browse the repository at this point in the history
  • Loading branch information
Fran Varney committed Jul 29, 2016
1 parent 9855ae1 commit 0b617fd
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,10 @@ module.exports = {
'no-underscore-dangle': 2, // disallow dangling underscores in identifiers
'no-unneeded-ternary': 2, // disallow the use of ternary operators when a simpler alternative exists
'no-whitespace-before-property': 0, // disallow whitespace before properties
'object-curly-newline': 0, // enforce consistent line breaks inside braces
'object-curly-newline': [2, {
ObjectExpression: { multiline: true, minProperties: 3 },
ObjectPattern: { multiline: true, minProperties: 5 }
}], // enforce consistent line breaks inside braces
'object-curly-spacing': [2, 'always'], // require or disallow padding inside curly braces (fixable)
'object-property-newline': 0, // enforce placing object properties on separate lines
'one-var': 0, // allow just one var statement per function (off by default)
Expand Down Expand Up @@ -279,7 +282,7 @@ module.exports = {
'prefer-spread': 0, // suggest using the spread operator instead of .apply()
'prefer-template': 0, // suggest using template literals instead of strings concatenation
'require-yield': 0, // disallow generator functions that do not have yield
'rest-spread-spacing': 0, // enforce spacing between rest and spread operators and their expressions
'rest-spread-spacing': 0, // enforce spacing between rest and spread operators and their expressions
'template-curly-spacing': 0, // enforce spacing around embedded expressions of template strings
'yield-star-spacing': 0 // enforce spacing around the * in yield* expressions
}
Expand Down

0 comments on commit 0b617fd

Please sign in to comment.