dillon1000/react

Commit

[ESLint] Suggest to destructure props when they are only used as members (#14993)

* Suggest to destructure props when they are only used as members

* Add more tests

* Fix a bug
Browse files
Changed paths2 files
First-parent comparison
M packages/eslint-plugin-react-hooks/__tests__/ESLintRuleExhaustiveDeps-test.js ModifiedM packages/eslint-plugin-react-hooks/src/ExhaustiveDeps.js Modified
Patch

Files changed

Rendering syntax-highlighted changes…