Skip to content

Incorrect formatting when destructuring parameters #1891

Closed

Description

function drawText({ text = "", location: [x, y] = [0, 0], bold = false }) {  
    // Draw text  
}

after formatting document

function drawText( { text = "", location: [x, y]=[0, 0], bold = false }) {  
    // Draw text  
}
  • whitespaces before and after = are removed
  • added extra whitespace before { in parameters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

BugFixed

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions