Skip to content

Add option to avoid line break after the = in let statements #6171

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

Open
larry0x opened this issue May 22, 2024 · 1 comment
Open

Add option to avoid line break after the = in let statements #6171

larry0x opened this issue May 22, 2024 · 1 comment

Comments

@larry0x
Copy link

larry0x commented May 22, 2024

// suppose this exceeds max line width...
let value = my_function(param1, param2, param3, param4, param5);

// option 1
let value =
    my_function(param1, param2, param3, param4, param5);

// option 2
let value = my_function(
    param1,
    param2,
    param3,
    param4,
    param5,
);

In my opinion, option 1 is very ugly. Would be great if a new config option is added that enforces option 2.

@larry0x larry0x changed the title Feature request: avoid line break after the = in assignment statements Add option to avoid line break after the = in let statements May 22, 2024
@larry0x
Copy link
Author

larry0x commented May 22, 2024

Seems related: #3514

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant