devongovett/dprint-node

Ship with json plugin

Opened this issue · 0 comments

Assuming it's not a huge deal, JSON is common in JS/TS projects, could dprint-node ship with it available as well?

I tried passing plugins, based on the dprint docs, but looks like that doesn't work:

  const content = dprint.format("config.json", config, {
    plugins: ["https://plugins.dprint.dev/json-0.15.5.wasm"],
  });

As I got an InvalidArg.