consistent-destructuring
should report error when destructure same object twice
#2364
Labels
consistent-destructuring
should report error when destructure same object twice
#2364
1️⃣ Explain here what's wrong
Destructuring an object implies that this object will not be used later.
Therefore,
consistent-destructuring
will report error on the codeHowever, destructuring same object twice will not cause error, which is unexpected.
2️⃣ Specify which rule is buggy here and in the title
consistent-destructuring
3️⃣ Add some examples where the issue appears
eslint should report error on the code above when enabling
consistent-destructuring
.The text was updated successfully, but these errors were encountered: