Joseph Frazier
f048ad3094
(Babylon) Allow return outside function ( #1608 )
...
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
2017-05-14 14:45:33 -07:00
..
2017-04-12 13:41:51 -07:00
2017-05-12 07:48:03 -07:00
2017-04-30 17:49:31 -07:00
2017-04-30 17:49:31 -07:00
2017-05-12 10:14:58 -07:00
2017-04-12 13:41:51 -07:00
2017-04-12 13:41:51 -07:00
2017-05-11 19:06:54 -07:00
2017-04-12 13:41:51 -07:00
2017-05-12 07:48:03 -07:00
2017-04-12 13:41:51 -07:00
2017-04-12 13:41:51 -07:00
2017-04-12 13:41:51 -07:00
2017-04-12 13:41:51 -07:00
2017-04-12 13:41:51 -07:00
2017-05-12 10:04:22 -07:00
2017-04-12 13:41:51 -07:00
2017-04-12 13:41:51 -07:00
2017-04-12 13:41:51 -07:00
2017-05-10 16:02:49 -07:00
2017-04-12 13:41:51 -07:00
2017-04-12 13:41:51 -07:00
2017-05-04 09:40:11 -07:00
2017-04-19 11:59:23 -07:00
2017-04-22 07:57:52 -07:00
2017-04-12 13:41:51 -07:00
2017-04-12 13:41:51 -07:00
2017-04-12 13:41:51 -07:00
2017-04-12 13:41:51 -07:00
2017-04-12 13:41:51 -07:00
2017-04-12 13:41:51 -07:00
2017-04-12 13:41:51 -07:00
2017-04-12 13:41:51 -07:00
2017-05-11 08:04:54 -07:00
2017-04-12 13:41:51 -07:00
2017-04-12 13:41:51 -07:00
2017-04-12 14:13:34 -07:00
2017-05-01 14:39:46 -07:00
2017-05-04 19:06:30 -07:00
2017-04-12 13:41:51 -07:00
2017-04-12 13:41:51 -07:00
2017-04-12 13:41:51 -07:00
2017-05-01 14:42:52 -07:00
2017-04-24 16:58:30 -04:00
2017-04-27 11:21:42 -07:00
2017-05-03 15:50:48 -07:00
2017-05-10 14:11:50 -07:00
2017-05-01 19:12:53 -07:00
2017-04-12 17:26:44 -07:00
2017-04-12 13:41:51 -07:00
2017-04-12 13:41:51 -07:00
2017-04-12 13:41:51 -07:00
2017-04-12 13:41:51 -07:00
2017-05-05 21:44:50 -07:00
2017-05-10 16:13:21 -07:00
2017-04-12 13:41:51 -07:00
2017-04-12 13:41:51 -07:00
2017-04-12 13:41:51 -07:00
2017-04-13 07:09:40 -07:00
2017-05-10 16:13:21 -07:00
2017-04-13 07:09:40 -07:00
2017-04-12 13:41:51 -07:00
2017-05-10 16:13:21 -07:00
2017-04-12 13:41:51 -07:00
2017-05-01 14:32:52 -07:00
2017-04-12 13:41:51 -07:00
2017-05-12 10:04:22 -07:00
2017-04-12 13:41:51 -07:00
2017-04-12 13:41:51 -07:00
2017-05-01 14:41:34 -07:00
2017-04-12 13:41:51 -07:00
2017-04-12 13:41:51 -07:00
2017-05-03 15:50:48 -07:00
2017-04-27 14:00:04 -07:00
2017-05-12 07:32:27 -07:00
2017-04-12 13:41:51 -07:00
2017-04-12 13:41:51 -07:00
2017-04-12 13:41:51 -07:00
2017-04-12 13:41:51 -07:00
2017-04-12 13:41:51 -07:00
2017-04-18 08:39:47 -07:00
2017-04-12 13:41:51 -07:00
2017-05-10 16:02:49 -07:00
2017-05-05 21:39:11 -07:00
2017-04-12 13:41:51 -07:00
2017-04-13 07:10:08 -07:00
2017-04-12 13:41:51 -07:00
2017-05-14 14:45:33 -07:00
2017-04-12 13:41:51 -07:00
2017-05-03 14:35:58 -07:00
2017-04-14 16:02:19 -07:00
2017-04-12 13:41:51 -07:00
2017-05-12 10:04:22 -07:00
2017-05-01 14:28:11 -07:00
2017-05-01 14:32:52 -07:00
2017-04-12 13:41:51 -07:00
2017-04-12 14:18:29 -07:00
2017-04-12 13:41:51 -07:00
2017-04-12 13:41:51 -07:00
2017-05-12 17:13:38 -07:00
2017-05-05 21:39:20 -07:00
2017-05-07 07:39:21 -07:00
2017-05-08 05:57:19 -07:00
2017-04-12 13:41:51 -07:00
2017-04-12 13:41:51 -07:00
2017-04-27 14:59:18 -07:00
2017-04-12 13:41:51 -07:00
2017-04-12 13:41:51 -07:00
2017-04-12 13:41:51 -07:00
2017-05-03 15:50:48 -07:00
2017-05-01 14:39:03 -07:00
2017-05-03 15:50:48 -07:00
2017-04-12 13:41:51 -07:00