Skip to content

sourcelevel/auto-formatter

Repository files navigation

AutoFormatter

This package have the responsibility to run mix format before EVERY commit to ensure that you modified code is formated.

Installation

The best way to install this package is install it as a escript:

mix escript.install hex auto_formatter

Otherwise, this package can be installed by adding auto_formatter to your list of dependencies in mix.exs:

def deps do
  [
    {:auto_formatter, "~> 0.1.0"}
  ]
end

Then, run mix deps.get on your terminal to download it.

Usage

All that you need is init it:

autoformatter init

Documentation

The docs can be found at HexDocs.

About

Mix escript to run mix format on precommit git hook

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages