# `Volt.JS.Format`
[🔗](https://github.com/elixir-volt/volt/blob/v0.23.0/lib/volt/js/format.ex#L1)

Loads JavaScript formatter configuration for oxfmt.

# `discovery_config`

```elixir
@spec discovery_config(keyword()) :: keyword()
```

File-discovery options (`:root`, `:sources`, `:ignore`) for `mix volt.js.format`
and `mix volt.js.check`, from the `:volt` key of `.formatter.exs`.

# `format_files`

# `formatter_opts`

```elixir
@spec formatter_opts() :: keyword()
```

Read the options in the project's `.formatter.exs`, or `[]` without one.

# `load_config`

```elixir
@spec load_config(keyword()) :: keyword()
```

Load oxfmt options.

Options come from the `:volt` key of `.formatter.exs`:

    [
      plugins: [Volt.Formatter],
      volt: [semi: false, single_quote: true]
    ]

Without that key, they come from `.oxfmtrc.json` or `.prettierrc.json`.
`formatter_opts` is the keyword list `.formatter.exs` evaluates to; `mix format`
passes it to `Volt.Formatter`, and the Mix tasks read the file themselves.

# `load_json_config`

---

*Consult [api-reference.md](api-reference.md) for complete listing*
