bonfire-app/.formatter.exs

25 lines
763 B
Elixir
Raw Normal View History

2022-09-02 04:04:16 +00:00
[
2022-11-12 06:08:34 +00:00
import_deps: [:surface, :ecto, :phoenix],
2022-09-12 04:34:14 +00:00
plugins: [Phoenix.LiveView.HTMLFormatter, Surface.Formatter.Plugin],
2022-09-02 04:04:16 +00:00
# add patterns matching all .sface files and all .ex files with ~F sigils
2022-09-12 04:34:14 +00:00
inputs: [
"{mix,.formatter,mess}.exs",
"{flavours,lib,test}/**/*.{ex,exs,sface,heex}",
2022-11-29 22:59:22 +00:00
"extensions/*/{config,lib,test}/**/*.{ex,exs,sface,heex}",
2022-09-12 04:34:14 +00:00
"forks/bonfire*/{config,lib,test}/**/*.{ex,exs,sface,heex}"
],
2022-11-12 06:08:34 +00:00
subdirectories: ["priv/*/migrations"],
2022-09-02 04:04:16 +00:00
# THE FOLLOWING ARE OPTIONAL:
# set desired line length for both Elixir's code formatter and this one
# (only affects opening tags in Surface)
2022-09-12 04:34:14 +00:00
line_length: 98
# heex_line_length: 84,
2022-09-02 04:04:16 +00:00
# or, set line length only for Surface code (overrides `line_length`)
# surface_line_length: 84
]