StackOverflow - javascript, eslint, airbnb-js-styleguide

how do you style (big) short-circuit assignment in javascripts?

imagine that you have this line: var result = content['aPossbileValue'] || $el.data('root-path') + content.type + '/something/' + content.slug; The line length is too long, so i wonder how can i improve this? Possible options: var result = content['aPossbileValue'] || $el.data('root-path') + content.type + '/something/' + content.slug; var result = content['aPossbileValue'] || $el.data('root-path') + content.type + '/something/' + content.slug; var result = content['aPossbileValue'] || $el.data('root-path') + content.type + '/something/' + content.slug Or maybe it's considered a bad practice! let me know your opinion ^^!

Was this helpful?

Have a different question?

Can't find the answer you're looking for? Submit your own question to our community.

🛎️ Get Weekly OTA Fixes

New answers, vendor issues, and updates — straight to your inbox.