Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add rules for object-curly-newline #118

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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