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

Throws false positives for multi line variable declarations #22

Open
sgkadle opened this issue Apr 1, 2024 · 0 comments
Open

Throws false positives for multi line variable declarations #22

sgkadle opened this issue Apr 1, 2024 · 0 comments

Comments

@sgkadle
Copy link

sgkadle commented Apr 1, 2024

Scenario :

Screenshot 2024-03-31 at 8 34 55 PM

Error :
Screenshot 2024-03-31 at 8 37 35 PM

This seems to work if I split the code into two different assignments on different lines. Like below :
const randomVariable = 'some random value';
const anotherRandomVariable = 'another random value';

Using default eslint config mentioned in the repo
'align-assignments/align-assignments': [2, { "requiresOnly": false } ]

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