prettier/website/static
Joseph Frazier a78d1389f6 Use babylon.parseExpression for JSON (#2476)
* Add comments showing parser arguments

Since this is how they are invoked, the comments make it easier to maintain.

* Use babylon.parseExpression for JSON

See https://github.com/prettier/prettier/issues/2378#issuecomment-314600778

Note that this doesn't yet print comments:

    echo '{/*comment*/"K":"V"}' | ./bin/prettier.js --parser json

* Remove parser-json.js

This reduces duplicate code in the built package.
See https://github.com/prettier/prettier/pull/2476#pullrequestreview-50181398

* Add test with block comment in JSON

* Fix test with block comment in JSON

* Add test with line comment in JSON

* Don't build now-redundant parser-json.js
2017-07-24 11:43:49 +10:00
..
images Add Hudl as a Prettier User (#2454) 2017-07-12 00:16:01 +10:00
lib Use babylon.parseExpression for JSON (#2476) 2017-07-24 11:43:49 +10:00
CNAME Create CNAME 2017-07-04 09:19:39 +10:00
icon.png Website (#2241) 2017-07-02 10:14:24 +10:00
install-service-worker.js Website (#2241) 2017-07-02 10:14:24 +10:00
manifest.json Website (#2241) 2017-07-02 10:14:24 +10:00
playground.js Format prettier with newer prettier (#2431) 2017-07-08 14:07:39 +02:00
prettier.png Website (#2241) 2017-07-02 10:14:24 +10:00
redirect.js Website (#2241) 2017-07-02 10:14:24 +10:00
service-worker.js Use babylon.parseExpression for JSON (#2476) 2017-07-24 11:43:49 +10:00
worker.js Add some standardjs-esque eslint rules (#2401) 2017-07-05 16:54:46 -04:00