MixErlfmt

Runs the erlfmt command for the given project. It's the most possible thin wrapper to the original library. All the documentation can be found in the original library.

Command line options

Configuration

You can configure common options inside erlfmt section in you Mix project. It's structure is the same as for rebar.config and can be got from erlfmt docs.

Example

defmodule MyApp.MixProject do
  use Mix.Project
  def project do
    [
      app: :my_app,
      version: "0.0.1",
      erlfmt: [print_width: 100]
    ]
  end
end

Installation

This libraby is available in Hex, the package can be installed by adding mix_erlfmt to your list of dependencies in mix.exs:

def deps do
  [
    {:mix_erlfmt, "~> 0.1.1"}
  ]
end

Documentation can is generated and published on HexDocs.