dprint-plugin-json icon indicating copy to clipboard operation
dprint-plugin-json copied to clipboard

JSON code formatting plugin for dprint.

Results 12 dprint-plugin-json issues
Sort by recently updated
recently updated
newest added

**Describe the bug** Comments at the end of objects have their preceding newlines removed; this is awkward in config files where I'm commenting out a setting at the bottom of...

bug

**OS** Windows 11 Pro. WSL 2. 11th Gen Intel(R) Core(TM) i7-1165G7 @ 2.80GHz 2.80 GHz RAM 16gb **Dprint version** `0.41.0` **JSON plugin** https://plugins.dprint.dev/json-0.17.4.wasm **dprint.json** ```json { "plugins": [ "https://plugins.dprint.dev/json-0.17.4.wasm" ]...

bug

There's really no need to parse JSON. Instead this could work directly off a stream of bytes. Ref: https://github.com/dprint/dprint-plugin-json/issues/19 https://github.com/dprint/dprint-plugin-json/issues/5 https://github.com/dprint/dprint/pull/792

**Describe the bug** `deno fmt` fails to format a JSON file because it contains invalid UTF8 chars. dprint-plugin-json version: 0.10.2 **Input Code** See https://gist.github.com/lucacasonato/a060df497ca3156327bcef46a554a8fb **Expected Output** A nicely formatted file,...

bug

**Describe the bug** `deno fmt` can lose comments without any indication. Minimal reproducible examples (via `deno fmt`): [here](https://github.com/mmuddasani/deno-fmt-comment-loss) Additional details: https://github.com/denoland/deno_std/issues/3502#issuecomment-1738428869 Another way to reproduce: ```sh dprint fmt --config

bug

https://github.com/denoland/deno/issues/20623

enhancement

Most packcage managers will remove the trailing new line when adding or removing packcages, but otherwise the file matches dprints format. Allow ignore mising newlines at the end of the...

enhancement

I like having trailing commas in files like: - tsconfig.json - jsconfig.json - .vscode/settings.json - .vscode/extensions.json Even though these files have .json in their name, it is common enough and...

enhancement

I'm not sure if this is in this plugin goals, but https://www.npmjs.com/package/js-beautify for example seems to always format code, even with sytnax errors ```ts interface { //missing type name }...