sourcelevel / auto-formatter

Mix escript to run mix format on precommit git hook

Home Page:https://hex.pm/packages/auto_formatter

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

https://hex.pm/packages/auto_formatter


Languages

Language:Elixir 100.0%