Skip to content

Instantly share code, notes, and snippets.

@blackode
Last active June 11, 2020 17:39
Show Gist options
  • Save blackode/dce88b42bada146c593b6b5dc4e107ea to your computer and use it in GitHub Desktop.
Save blackode/dce88b42bada146c593b6b5dc4e107ea to your computer and use it in GitHub Desktop.
Elixir codebase formatter
# 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