-
Notifications
You must be signed in to change notification settings - Fork 88
Commit 551cce5
committed
feature(formatting): Harmonize the function formatting
BREAKING CHANGE: If you use the `showFunctions: true` option, the function are now always inlined in the output by default. Before it was not always the case (depending one the engine, platform or babel versions)
You could get back to the previous behavior by using the `preserveFunctionLineBreak` function export as a value of the option `functionValue`.1 parent b96153f commit 551cce5
File tree
4 files changed
+35
-10
lines changed- src
- formatter
4 files changed
+35
-10
lines changedOriginal file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
2 | 2 |
| |
3 | 3 |
| |
4 | 4 |
| |
5 | - | ||
5 | + | ||
6 | + | ||
7 | + | ||
8 | + | ||
9 | + | ||
10 | + | ||
11 | + | ||
12 | + | ||
13 | + | ||
14 | + | ||
6 | 15 |
| |
7 | 16 |
| |
8 | 17 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
22 | 22 |
| |
23 | 23 |
| |
24 | 24 |
| |
25 | - | ||
26 | - | ||
27 | - | ||
28 | - | ||
25 | + | ||
26 | + | ||
27 | + | ||
29 | 28 |
| |
30 | 29 |
| |
31 | 30 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
41 | 41 |
| |
42 | 42 |
| |
43 | 43 |
| |
44 | + | ||
45 | + | ||
46 | + | ||
47 | + | ||
48 | + |
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
5 | 5 |
| |
6 | 6 |
| |
7 | 7 |
| |
8 | - | ||
8 | + | ||
9 | 9 |
| |
10 | 10 |
| |
11 | 11 |
| |
| |||
889 | 889 |
| |
890 | 890 |
| |
891 | 891 |
| |
892 | - | ||
893 | - | ||
892 | + | ||
893 | + | ||
894 | + | ||
895 | + | ||
896 | + | ||
897 | + | ||
898 | + | ||
899 | + | ||
900 | + | ||
901 | + | ||
902 | + | ||
903 | + | ||
904 | + | ||
905 | + | ||
906 | + | ||
894 | 907 |
| |
895 | 908 |
| |
896 | 909 |
| |
897 | - | ||
898 | - | ||
910 | + | ||
899 | 911 |
| |
900 | 912 |
| |
901 | 913 |
| |
|
0 commit comments