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
Add preferHanging configuration for expressions #173
Comments
dsherret
changed the title
Array literals - Add preferHanging configuration
Array literals, if statements, etc... - Add preferHanging configuration
Feb 9, 2020
dsherret
changed the title
Array literals, if statements, etc... - Add preferHanging configuration
Add preferHanging configuration for expressions
Feb 10, 2020
dsherret
referenced
this issue
in dprint/dprint
Feb 10, 2020
Adds a `preferHanging` configuration setting that defaults to `false`. Also fixes trailing comments not being inserted when going from single-line to multi-line.
This was a breaking change in the defaults. New behaviour shown here: Before config the default was |
dsherret
referenced
this issue
in dprint/dprint
Jun 6, 2020
Adds a `preferHanging` configuration setting that defaults to `false`. Also fixes trailing comments not being inserted when going from single-line to multi-line.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Right now by default, array literals will be hanging unless they are explicitly made multi-line. This should be changed to be multi-line by default and work similarly to the new
preferHangingArguments
. The code between these two areas should be shared as well because arrays are comma separated values.The text was updated successfully, but these errors were encountered: