It seems that because of contents of line 39 in mix.exs:
files: ~w(lib mix.exs README.md),
.formatter.exs is not included in the package published on hex.pm and that prevents to use its exported formatting rules.
The solution is to either explicitly add .formatter.exs to the line mentioned above or simply remove it - mix hex.publish will, by default, include libmix.exsREADME.md as well as .formatter.exs and LICENSE
It seems that because of contents of line 39 in
mix.exs
:.formatter.exs
is not included in the package published on hex.pm and that prevents to use its exported formatting rules.The solution is to either explicitly add
.formatter.exs
to the line mentioned above or simply remove it -mix hex.publish
will, by default, includelib
mix.exs
README.md
as well as.formatter.exs
andLICENSE