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

const, let formatting with multiple lines #158

Open
greg-minshall opened this issue Oct 31, 2021 · 1 comment
Open

const, let formatting with multiple lines #158

greg-minshall opened this issue Oct 31, 2021 · 1 comment

Comments

@greg-minshall
Copy link

i tried this with emacs -Q -L ./typescript.el.

const a = 1,
b = 2;

this is true for let also.

in a .js buffer, with js2-mode, i get what i would have expected:

const a = 1,
      b = 2;

i'm running

GNU Emacs 27.2 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.27, cairo version 1.17.4) of 2021-03-26

and i appear to be running

commit c9b22f5f338c4efa138a79d551c4cc4a9e9e7826
@redblobgames
Copy link

Happens to me too (for a long time), so now I write

const a = 1;
const b = 2;

😅

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

2 participants