formatJson
formatJson(
value):string
Defined in: cli/astromech/src/utils/format-json/format-json.ts:45
value as JSON laid out the way this repo’s Prettier lays out a .json file, so a file a generator writes is
already what the formatting check expects and a re-run does not change it. Objects are always expanded, one key
per line; an array of plain values stays on one line when it fits in 120 columns and goes one value per line when
it does not (what Prettier does for strings). Ends in a single newline.
JSON.stringify rules apply first: undefined, functions and symbols are dropped from objects.
Parameters
Section titled “Parameters”unknown
Returns
Section titled “Returns”string