bonfire-app/.formatter.exs

23 lines
642 B
Elixir
Raw Normal View History

2022-09-02 04:04:16 +00:00
[
import_deps: [:surface],
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}",
"forks/bonfire*/{config,lib,test}/**/*.{ex,exs,sface,heex}"
],
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
]