Skip to content

Remove "opinionated" and allow more config? #620

@JohnnyMorganz

Description

@JohnnyMorganz

A discussion which continues to happen offline is the decision against config options for StyLua, so I've decided to open an issue on it.

My main goal has always been to have "sane" defaults in the formatting, but it is impossible to suit every case.

I wonder if being an "opinionated" formatted is still beneficial. It's main selling point has been to reduce bikeshedding, but in practice, I'm not sure if that actually rings true.

Rustfmt highlights an example where it's very configurable, but works pretty well (and from what I've seen, most people don't actually bother configuring, but maybe because there are so many options 😅).

Maybe we should just allow more (reasonable) configurations?

Metadata

Metadata

Assignees

No one assigned

    Labels

    requires optionThis feature request would require option configurationrfc/in discussionThis issue is currently in discussion, comments are welcome!

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions