We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
First, very many thanks for writing this package. I have been looking for a way to enforce aligned assignment in eslint for over a year.
I am finding that supplying defaults for destructuring single-line assignments confuses this plugin, for example:
const { foo = [] } = bar;
reports 'This group of assignments is not aligned'. The 'fix' produces:
which is not only worse but also does not stop the rule from complaining.
The text was updated successfully, but these errors were encountered:
The behaviour additionally seems to depend on the default. true , 'xyz' and 1 seem unaffected, as is ([]), but '' and {} are affected.
true
'xyz'
1
([])
''
{}
Also interesting:
const { foo = [], foooo = [], } = bar;
doesn't get fixed as
Sorry, something went wrong.
Fixes gh lucasefe#13: Destructuring assignment should not confuse the…
10b8e24
… rule
No branches or pull requests
First, very many thanks for writing this package. I have been looking for a way to enforce aligned assignment in eslint for over a year.
I am finding that supplying defaults for destructuring single-line assignments confuses this plugin, for example:
reports 'This group of assignments is not aligned'. The 'fix' produces:
which is not only worse but also does not stop the rule from complaining.
The text was updated successfully, but these errors were encountered: