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
72456bf06f
prettier
/
tests
/
jsx_escape
/
jsfmt.spec.js
3 lines
81 B
JavaScript
Raw
Normal View
History
Unescape
Escape
[JSX] Handle non-breaking space (#557)
2017-02-02 02:29:42 +03:00
run
_spec
(
_
_dirname
,
{
parser
:
'flow'
}
)
;
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'
}
)
;