Skip to content

Commit 2b0f735

Browse files
committed
fix(react): Disable react/destructuring-assignment as it is too naïve to be useful
1 parent 79020a6 commit 2b0f735

File tree

1 file changed

+2
-1
lines changed
  • packages/eslint-config-zillow/rules

1 file changed

+2
-1
lines changed

packages/eslint-config-zillow/rules/react.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -415,7 +415,8 @@ module.exports = {
415415

416416
// Enforce consistent usage of destructuring assignment of props, state, and context
417417
// https://github.com/yannickcr/eslint-plugin-react/blob/843d71a432baf0f01f598d7cf1eea75ad6896e4b/docs/rules/destructuring-assignment.md
418-
'react/destructuring-assignment': ['error', 'always'],
418+
// TODO: enable when it is less naïve about shadowing outer scopes
419+
'react/destructuring-assignment': ['off', 'always'],
419420

420421
// Prevent using this.state within a this.setState
421422
// https://github.com/yannickcr/eslint-plugin-react/blob/843d71a432baf0f01f598d7cf1eea75ad6896e4b/docs/rules/no-access-state-in-setstate.md

0 commit comments

Comments
 (0)