A mix format plugin that formats JavaScript and TypeScript files with oxfmt.
Setup
Add Volt.Formatter to your .formatter.exs:
[
plugins: [Volt.Formatter],
inputs: [
"{mix,.formatter}.exs",
"{config,lib,test}/**/*.{ex,exs}",
"assets/**/*.{js,ts,jsx,tsx}"
]
]Configuration
Reads options from config :volt, :format or falls back to
.oxfmtrc.json / .prettierrc.json. See the "Formatter & linter configuration" section in the README for details.