Skip to content
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

Control the dot operator's placement #570

Open
freshp86 opened this issue Oct 14, 2023 · 0 comments
Open

Control the dot operator's placement #570

freshp86 opened this issue Oct 14, 2023 · 0 comments

Comments

@freshp86
Copy link

freshp86 commented Oct 14, 2023

Example code

const query = db.
  select(longParameter1).
  from(longParameter2).
  where(longParameter3).
  groupBy(longParameter4).
  orderBy(longParameter5).
  exec();

With the default configuration, it always changes to the following

const foo = db
  .select(longParameter1)
  .from(longParameter2)
  .where(longParameter3)
  .groupBy(longParameter3)
  .orderBy(longParameter3)
  .exec();

Note the dot operator is moved to the next line. Is there a way to configure this, so that the dot operator stays on the previous line? I tried "operatorPosition": "sameLine" but it does not seem to have any effect.

@freshp86 freshp86 changed the title How to control the dot operator's placement? Control the dot operator's placement Oct 14, 2023
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