prettier/tests/json
Joseph Frazier 175cde1dc5 Force trailingComma option to "none" when parser is JSON (#2335)
* Run JSON tests with `trailingComma: "all"`

* Add test of `parser: 'json', trailingComma: 'all'` with non-.json extension

See https://github.com/prettier/prettier/issues/2308#issuecomment-311707801

* Force trailingComma option to "none" when parser is JSON

This fixes https://github.com/prettier/prettier/issues/2308
2017-06-28 09:29:47 -07:00
..
__snapshots__ Force trailingComma option to "none" when parser is JSON (#2335) 2017-06-28 09:29:47 -07:00
boolean.json JSON: Print trailing newline (#2226) 2017-06-21 15:40:19 -07:00
jsfmt.spec.js Force trailingComma option to "none" when parser is JSON (#2335) 2017-06-28 09:29:47 -07: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 Add JSON support (#2173) 2017-06-17 10:36:42 -10:00
single-line.json Add JSON support (#2173) 2017-06-17 10:36:42 -10: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