Skip to content

Instantly share code, notes, and snippets.

@matteosister
Last active June 5, 2018 14:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save matteosister/f551f348de60d828b5567648294af69b to your computer and use it in GitHub Desktop.
Save matteosister/f551f348de60d828b5567648294af69b to your computer and use it in GitHub Desktop.
formatter config file
[
inputs: ["lib/**/*.{ex,exs}", "test/**/*.{ex,exs}"],
locals_without_parens: [
# plug
plug: :*,
parse: :*,
serialize: :*,
value: :*,
match: :*,
# ecto
has_one: :*,
has_many: :*,
embeds_one: :*,
embeds_many: :*,
belongs_to: :*,
add: :*,
from: :*,
# ecto migrations
remove: 1,
add: :*,
# phoenix
transport: :*,
socket: :*,
pipe_through: :*,
forward: :*,
options: :*,
defenum: :*,
get: :*,
post: :*,
delete: :*,
patch: :*,
# absinthe
field: :*,
resolve: :*,
arg: :*,
list_of: :*,
middleware: :*,
import_types: 1
],
line_length: 120
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment