I'm trying to find a list a configurable options for mix format to put in the formatter config file, but I can't for the life of me find it. It's not in the mix format docs or anywhere else I've looked. Anyone know where I can find this information?
Asked
Active
Viewed 5,208 times
8
-
Maybe this article could helps: https://medium.com/blackode/code-formatter-the-big-feature-in-elixir-v1-6-0-f6572061a4ba – Dharma Saputra Jun 20 '18 at 22:52
3 Answers
8
It turns out that mix format
does not have a lot of options to set, and what you see on the mix docs page is exactly what you get. It seems there are not a breadth of settings to make it more opinionated.

Ian
- 544
- 3
- 16
3
You should read the docs: Formatting Options
There are plenty of guides to get you started online as well, for example: Everything you need to know about Elixir's new formatter

JPYamamoto
- 496
- 6
- 17
-
6As I said, I have read the docs. I was expecting a lot more fine-tuning of format, like something I would get with a JS linter. It's basically a hand full of things you can set, and then manually specifying what functions you want to wrap with parens. – Ian Jun 21 '18 at 18:03
2
When you need a bunch of options to fine tune the format of your project, then try one of these tools https://github.com/h4cc/awesome-elixir#code-analysis, we are currently using credo.

frost-nzcr4
- 1,540
- 11
- 16