js-formatter
js-formatter copied to clipboard
JS formatter for dprint Wasm plugins.
Title is specific, but generally update the web formatter and playground to support formatting with other plugins from within a plugin.
In my application I have utility libraries that are shared between a typescript CLI program and a web app. The interface exposed by the various plugins (e.g. `@dprint/markdown`) doesn't work...
dprint will throw an error if the input code has bad syntax, but there are presumably other errors that can be thrown by the module too. It'd be nice if...
Hello! I have this piece of code: ```js f(() => f2({ a: 1, })) ``` and it gets formatted into something like ```js f(() => f2({ a: 1, }) );...
# Summary `createStreaming` takes forever when running example code from [deno.land](https://deno.land/x/[email protected]) ```ts import { createStreaming, GlobalConfiguration, } from "https://deno.land/x/dprint/mod.ts" const globalConfig: GlobalConfiguration = { indentWidth: 2, lineWidth: 80, } const...
For the web formatter, there should be a way to create a "combined formatter object" that takes multiple formatters and then when someone calls `formatter.formatText("file.ts", "test;")` it selects the correct...
Hey, here's my situation: 1. Given a tool X that applies `dprint` programmatically to code that it generates into a users project Y 2. Given that X wants to allow...