[go: up one dir, main page]

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

indent-binary-ops: Expects 0 intendation on multiline re-assignment #546

Open
3 tasks done
anne-gropler opened this issue Sep 24, 2024 · 0 comments
Open
3 tasks done

Comments

@anne-gropler
Copy link
anne-gropler commented Sep 24, 2024

Validations

Describe the bug

I noticed that the indentation of the multiline assignment depends on whether it is an assignment (line starts with const or let) or an re-assignment (line starts just with the variable itself).

Expected:

const a = 1
  + 2;

let b = 1
  + 2;

b = 2
  + 2; // expected

Actual:

const a = 1
  + 2;

let b = 1
  + 2;

b = 2
+ 2; // actual

Reproduction

https://stackblitz.com/edit/github-fmnurc?file=src%2Findex.ts,README.md,eslint.config.js

Contributes

  • [ ] I am willing to submit a PR to fix this issue
  • [ ] I am willing to submit a PR with failing tests
@anne-gropler anne-gropler changed the title indent-binary-ops: Expects 0 intendation when re-assigning. indent-binary-ops: Expects 0 intendation on multiline re-assignment Sep 24, 2024
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