Disable the prefer-destructuring
rule
#225
Replies: 2 comments
-
This rule made sense before optional chaining existed, I don't think there are any good reasons to keep it disabled nowadays. |
Beta Was this translation helpful? Give feedback.
-
I recently created an issue because It was to only disable Arrays, but leave it for Objects. Personally I do prefer destructuring in general, but recognise that there are scenarios where object-paths are preferable (especially when calling functions where scope should be maintained). I'm slightly worried that less people will destructure where it's clearly favourable, resulting in PR feedback and code changes by others, but that shouldn't prevent disabling this rule. |
Beta Was this translation helpful? Give feedback.
-
There is a proposal to disable the
prefer-destructuring
rule.Please see the documentation
Beta Was this translation helpful? Give feedback.
All reactions