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
a18d80253a
prettier
/
tests
/
flow_interface_types
/
jsfmt.spec.js
2 lines
42 B
JavaScript
Raw
Normal View
History
Unescape
Escape
Switch to @babel/parser (#4544) We landed a change that added a new `InterpreterDirective` AST node type for hashbangs, and no longer add it as a comment/leadingComment. Ref: https://github.com/babel/babel/pull/7928 I mimicked what we do in `@babel/generator` here, since I found it better than trying to add comments to the ast in `parser-include-shebang.js`). Definitely open to a better/cleaner option though! Note: I'll follow this up with enabling tests for https://github.com/prettier/prettier/pull/4543 and https://github.com/prettier/prettier/pull/4540 once they land too.
2018-05-25 19:27:41 +03:00
run
_spec
(
_
_dirname
,
[
"flow"
,
"babylon"
]
)
;