Skip to content

Bug: unstable + non-parsing formatting of "single method" argument #168

@helixbass

Description

@helixbass

This:

addStateHandlers(
  {
    x: 0
  }, {
    incrementX: ({x, y}) -> -> x: x + y + 1
  },
  (
    oldProps
    newProps
  ) -> oldProps.y isnt newProps.y
)

is first getting formatted as:

addStateHandlers
  x: 0
,
  incrementX: ({x, y}) -> -> x: x + y + 1
,
  (oldProps, newProps) -> oldProps.y isnt newProps.y

but then that is getting formatted as:

addStateHandlers {x: 0}, incrementX: ({x, y}) -> -> x: x + y + 1, (
  oldProps
  newProps
) -> oldProps.y isnt newProps.y

which doesn't parse

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions