Last active
June 11, 2020 17:39
-
-
Save blackode/dce88b42bada146c593b6b5dc4e107ea to your computer and use it in GitHub Desktop.
Elixir codebase formatter
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# project_root/.formatter.exs | |
[ | |
# functions to let allow the no parens like def print value | |
locals_without_parens: [hello: 2, get_user: 1, addtion: *], | |
# files to format | |
inputs: ["mix.exs", "{config,lib,test}/**/*.{ex,exs}"], | |
line_length: 80, | |
# importing configs from other libraries it is depending | |
import_deps: [:dependency1, :dependency2], | |
# configuration export to other projects to use in their projects | |
export: [ | |
[ | |
locals_without_parens: [hello: 2, get_user: 1, addtion: *] | |
] | |
] | |
] | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment