import { Options } from "https://deno.land/x/deno_fmt@0.0.1/mod.ts";
import { Options } from "https://deno.land/x/deno_fmt@0.0.1/mod.ts";
Properties
Methods
Converts the options object into an object of options for dprint
.
Static Properties
Static Methods
Convert the options object into an object of options suitable for the
dprint
formatter API. The options retured depend on the ext
option,
which determines the formatter plugin to use. Each formatter plugin has
its own set of configuration options and defaults.
Validates and converts options from a JavaScript-style notation into an
array of their equivalent Command Line flags, suitable for passing to
the Deno.Command
subprocess API as the args
option. Since we are using
a shell command to format our code, we must ensure that the options are
properly escaped and formatted for the shell environment. Otherwise, we
could open up our users to being vulnerable for code injection attacks.