This website requires JavaScript.
Explore
Help
Sign In
vitalif-js
/
prettier
Watch
1
Star
0
Fork
You've already forked prettier
0
Code
Issues
Pull Requests
Projects
Releases
Wiki
Activity
bc4075ac65
prettier
/
tests
/
shebang
/
jsfmt.spec.js
2 lines
54 B
JavaScript
Raw
Normal View
History
Unescape
Escape
Pass entire text through formatWithShebang() to format() (#1718) * Verify shebang tests against Babylon as well as Flow/Typescript * Pass entire text through formatWithShebang() to format() That way, we won't have to do any arithmetic on range and cursor locations when there is a shebang. See here for details: https://github.com/prettier/prettier/pull/1637#issuecomment-303846507 This required changing comment printing such that comments that are actually shebangs are just ignored. * Add curly brace after `if` See https://github.com/prettier/prettier/pull/1718#discussion_r118382574
2017-05-25 01:59:25 +03:00
run
_spec
(
_
_dirname
,
null
,
[
"typescript"
,
"babylon"
]
)
;