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: treats TS union types as binary operators #676

Open
3 of 5 tasks
danyadev opened this issue Feb 2, 2025 · 0 comments
Open
3 of 5 tasks

indent-binary-ops: treats TS union types as binary operators #676

danyadev opened this issue Feb 2, 2025 · 0 comments

Comments

@danyadev
Copy link

danyadev commented Feb 2, 2025

Validations

Describe the bug

What my code looks like and what the rule wants from it:
Image

Union types shouldn't be treated as binary operations and the rule shouldn't touch them

$\textsf{\color{gray}(btw the indent rule also has problems with this style of unions which cannot be suppressed by igronedNodes)}$

Reproduction

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

Contributes

  • I am willing to submit a PR to fix this issue
  • I am willing to submit a PR with failing tests
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