* 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
21 lines
655 B
JavaScript
21 lines
655 B
JavaScript
"use strict";
|
|
|
|
test("TODO: enable this test after releasing 1.13, you can manually set 1.13.0 in /package.json to test it for now", () => {});
|
|
|
|
/*
|
|
const runPrettier = require("../runPrettier");
|
|
|
|
describe("json-stringify takes precedence over json for package.json", () => {
|
|
runPrettier("plugins", ["--stdin", "--stdin-filepath=package.json"], {
|
|
input:
|
|
'{ "a": "longlonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglong" }'
|
|
}).test({
|
|
stdout:
|
|
'{\n "a": "longlonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglong"\n}\n',
|
|
stderr: "",
|
|
status: 0,
|
|
write: []
|
|
});
|
|
});
|
|
*/
|