vt-elixir / ja_serializer

JSONAPI.org Serialization in Elixir.
Other
640 stars 148 forks source link

Export `locals_without_parens` configuration on `formatter.exs` #332

Closed davidbrusius closed 4 years ago

davidbrusius commented 4 years ago

Export formatter configuration to allow clients import it as formatting options on their own formatter.exs file. This is a similar approach to what ecto and phoenix apply on their formatter files.

Library clients can inherit this configuration by adding the library name in the import_deps option which will automatically inherit configurations that are defined inside the library export option.

For more information, check mix format docs and Code.format_string/2.

beerlington commented 4 years ago

Thanks! 👏