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

Conversation

franvarney
Copy link
Contributor

closes #113

I set minProperties to 5 to allow for single line destructuring like:
let {allow, for, single, line, destructure} = someVar

@jackboberg
Copy link
Contributor

You can specify different options for object literals and destructuring assignments:

ObjectExpression and ObjectPattern

@tzmanics
Copy link
Contributor

@franvarney looks like there's just one test not passing that is causing the CI to fail:

Failed tests:
  3) packages that use mod-standard: logger does not yield errors:
      actual expected
      20
      Expected 2 to equal specified value

once that's fixed this looks good 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Consistent line breaks insides braces
3 participants