-
-
Notifications
You must be signed in to change notification settings - Fork 194
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Configuration options for "Fabulous compatibility"? #437
Comments
Hello @aspnetde, there are no settings for this. |
I also have trouble reading normal Elmish code formatted like that, as already explained in this other comment. The lists end up being indented too far in, with a lot of leading white-space (like the example shows) and, as a result, Fantomas ends up narrowing down the text into a thin column near the end of the line, making it difficult to write and read. I've learned pretty much all I know from Elmish by studying the fulma-demo application and I don't see this kind of indenting style there either; you usually only indent the list's children one level further and that's it, no need to push it after the column where |
@nojaf nice! Although I think keeping the opening Are you planning to only affect parentheses or nested lists too? I think it'd be really good if we could get that behavior through an option for Elmish code. |
that would look very different from how we format lists in general so for those specific situations we might want a new setting.
Not that much concrete plans to be honest. Feel free to provide some samples and propose how it should be formatted instead. If the formatting, in general, is bad we should "fix" it. What is important for me is that there is a logic to formatting. |
Performance issues should be fixed now. I think we can close this. |
@nojaf it does help. When I get a clearer picture on this matter, I'll come up with a structured proposal for indenting constructs with precedence of rules and a side-by-side comparison to the current approach. That'd be in a separate issue. Thank you! |
@reaysawa thanks! |
I've got the following code that describes a Fabulous view:
If you ask me, indention is already strongly kicking in here – but after all I am fine with it. However, running Fantomas results in that:
That's far from "optimal". (TBH for me that's unacceptable.)
Is there a way to configure Fantomas in a way that the result comes closer to my initial formatting?
The text was updated successfully, but these errors were encountered: