question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

es6 destructuring

See original GitHub issue
function takeThing({prop}) {
    console.log("inner prop", prop)
}

is being reformatted to

function takeThing({
    prop
}) {
    console.log("inner prop", prop)
}

I don’t think this is intentional.

Issue Analytics

  • State:closed
  • Created 9 years ago
  • Comments:12 (7 by maintainers)

github_iconTop GitHub Comments

2reactions
bitwisemancommented, Apr 22, 2019

@JoyceBabu Glad you found it. 😄 Please use "collapse,preserve-inline".

1reaction
JoyceBabucommented, Apr 22, 2019

@bitwiseman I found out the option name from another issue. Fixed by setting "brace_style": "collapse-preserve-inline". Thank you.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Destructuring assignment - JavaScript - MDN Web Docs
The destructuring assignment syntax is a JavaScript expression that makes it possible to unpack values from arrays, or properties from ...
Read more >
React ES6 Destructuring - W3Schools
Destructuring makes it easy to extract only what is needed. Destructing Arrays. Here is the old way of assigning array items to a...
Read more >
ES6 Destructuring Assignment Explained By Examples
ES6 provides a new feature called destructing assignment that allows you to destructure properties of an object or elements of an array into...
Read more >
10. Destructuring - Exploring JS
Destructuring is a convenient way of extracting multiple values from data stored in (possibly nested) objects and Arrays. It can be used in...
Read more >
ES6 Destructuring: The Complete Guide - codeburst
Destructuring simply implies breaking down a complex structure into simpler parts. In JavaScript, this complex structure is usually an object or ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found