This website requires JavaScript.
Explore
Help
Sign In
vitalif
/
prettier
Watch
1
Star
0
Fork
You've already forked prettier
0
Code
Issues
Pull Requests
Releases
Wiki
Activity
1b2127efb6
prettier
/
tests
/
intersection
/
jsfmt.spec.js
2 lines
21 B
JavaScript
Raw
Normal View
History
Unescape
Escape
Special logic for flow intersection (#1018) We started using the same logic for union and intersection but then added a special case for `a & {}`. It turns out that they should be handled completely differently in practice. The heuristic i'm using is if you go from object to non-object or vis-versa, then inline, otherwise go to the next line and indent (like &&). Fixes #864 Fixes #1017
2017-03-22 20:01:34 +03:00
run
_spec
(
_
_dirname
)
;