prettier/tests/json
Ika 1062f2a889
feat: support JSON.stringify formatting (#4450)
* test: move tests

* feat: support legacy JSON formatting

* fix: add missing assertion

* test: fix coverage

* fix: same output as JSON.stringify

* refactor: fix linting

* refactor: rename to json-stringify

* refactor: fix linting

* fix: should fix the production build

* docs: remove outdated name

* fix(playgound): add lib/parser-json-stringify.js

* feat(playgound): add example for json-stringify

* fix: no error on singleQuote string

* fix(playground): correctly load json-stringify

* fix: identifier is only allowed in ObjectProperty.key

* refactor: clearer
2018-05-14 09:12:25 +08:00
..
__snapshots__ feat: support JSON.stringify formatting (#4450) 2018-05-14 09:12:25 +08:00
with-comment feat: support JSON.stringify formatting (#4450) 2018-05-14 09:12:25 +08:00
boolean.json JSON: Print trailing newline (#2226) 2017-06-21 15:40:19 -07:00
jsfmt.spec.js feat: support JSON.stringify formatting (#4450) 2018-05-14 09:12:25 +08:00
multi-line.json Add JSON support (#2173) 2017-06-17 10:36:42 -10:00
null.json JSON: Print trailing newline (#2226) 2017-06-21 15:40:19 -07:00
number.json JSON: Print trailing newline (#2226) 2017-06-21 15:40:19 -07:00
pass1.json feat: split out JSON5 (#4367) 2018-04-25 22:10:22 +08:00
positive-number.json feat: support JSON.stringify formatting (#4450) 2018-05-14 09:12:25 +08:00
propertyKey.json feat(json): enforce StringLiteral-style property key (#4371) 2018-04-26 00:00:07 +08:00
single-line.json Add JSON support (#2173) 2017-06-17 10:36:42 -10:00
single-quote.json feat: support JSON.stringify formatting (#4450) 2018-05-14 09:12:25 +08:00
string.json JSON: Print trailing newline (#2226) 2017-06-21 15:40:19 -07:00
trailingComma.notjson Force trailingComma option to "none" when parser is JSON (#2335) 2017-06-28 09:29:47 -07:00