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
?