f048ad3094
This makes it easier to format code snippets including a `return` statement, without having to format the entire function. For example, given the following code: ```js function f() { return someVeryLongStringA && someVeryLongStringB && someVeryLongStringC && someVeryLongStringD } ``` a developer could select the line containing `return`, then use prettier to format the code to: ```js function f() { return ( someVeryLongStringA && someVeryLongStringB && someVeryLongStringC && someVeryLongStringD ); } ``` which can then be reindented by the editor. --- Related to https://github.com/prettier/prettier/issues/593 |
||
---|---|---|
.. | ||
jsfmt.spec.js.snap |