Skip to content

Avoid horizontal alignment pattern #288

@dongcheolpark

Description

@dongcheolpark

Hi guys,

this is my code.

return some_method(param: {
  first: 'first',
  second: { second_first: {}, second_second: {} }
})

I'd like to format my code as follows: 

return some_method(param: {
  first: 'first',
  second: {
    second_first: {},
    second_second: {}
  }
})

or

return some_method(
  param: {
    first: 'first',
    second: {
      second_first: {},
      second_second: {}
    }
  })

but rufo make code like this:

return some_method(param: {
                     first: 'first',
                     second: {
                       second_first: {},
                       second_second: {},
                     },
                   })

I can't find any configuration to avoid this pattern.

Do guys Have plan implement this feature?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions