David Sherret @dsherret.dev · Oct 21

Here's the code dprint's CLI uses to programmatically add to the "plugins" array in its configuration file when someone runs `dprint config add <plugin/plugin-url>`. It takes into account indentation, comments, newline kind, and respects trailing commas.

0 likes 1 replies

?

Replies

David Sherret · Oct 21

jsonc-parser 0.26 has been integrated into dprint and will also be used under the hood in the next Deno CLI release for commands like `deno install <pkg>`.