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
6c7837bab6
prettier
/
tests
/
jsx_escape
/
jsfmt.spec.js
3 lines
63 B
JavaScript
Raw
Normal View
History
Unescape
Escape
Properly escape JSXText (#329) It's annoying that there's a bug inside of the flow parser, I raised it internally. While this is getting fixed, we can workaround it. This now makes babylon properly escape JSXText.
2017-01-19 19:30:35 +03:00
run
_spec
(
_
_dirname
)
;
Introduce --parser/parser option and deprecate --flow-parser/useFlowParser (#342) The previous API was inconsistent. The new one is ```js --parser flow --parser babylon {parser: 'flow'} {parser: 'babylon'} ``` if we ever want to add new parsers in the future it'll allow that more easily. I put a console.log in parser.js in both functions and tested that the test suite worked both with and without the change in run_spec. I also tested that both the previous and new command line options are working. At some point in the future we'll likely want to get rid of the old api but might as well keep supporting it so we don't break anyone for now.
2017-01-20 01:35:12 +03:00
run
_spec
(
_
_dirname
,
{
parser
:
'babylon'
}
)
;