Skip to content

Instantly share code, notes, and snippets.

@voger
Last active April 20, 2020 18:10
Show Gist options
  • Save voger/9823d7b470a2f53ac48e3debb8e1cc6a to your computer and use it in GitHub Desktop.
Save voger/9823d7b470a2f53ac48e3debb8e1cc6a to your computer and use it in GitHub Desktop.
My custom .formatter.exs for elixir's mix format task
[
inputs: ["mix.exs", "{config,lib,test}/**/*.{ex,exs}"],
locals_without_parens: [
# Kernel
inspect: :*,
# Phoenix
plug: :*,
action_fallback: :*,
render: :*,
redirect: :*,
socket: :*,
get: :*,
post: :*,
put: :*,
resources: :*,
pipe_through: :*,
delete: :*,
forward: :*,
channel: :*,
transport: :*,
# Ecto Schema
field: :*,
belongs_to: :*,
has_one: :*,
has_many: :*,
embeds_one: :*,
embeds_many: :*,
many_to_many: :*,
add: :*,
# Ecto Query
from: :*,
# Ecto Migration
create: :*,
modify: :*,
# Absinthe
arg: :*,
field: :*,
resolve: :*,
middleware: :*,
trigger: :*,
config: :*,
parse: :*,
serialize: :*,
value: :*,
resolve_type: :*,
import_types: :*,
import_fields: :*,
interface: :*,
union: :*,
]
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment