You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
With react/destructuring-assignment rule turned on, we get false positives for the case when render function is defined inside an object. Seems like such function is treated the same way as a render function inside React class component and the first argument of such function is expected to be destructured before use.
With
react/destructuring-assignment
rule turned on, we get false positives for the case whenrender
function is defined inside an object. Seems like such function is treated the same way as arender
function inside React class component and the first argument of such function is expected to be destructured before use.Reproduction example (TypeScript):
For such example ESLint reports: "Must use destructuring arg1 assignment(react/destructuring-assignment)". It does not report it for
arg2
.eslint-plugin-react
version: 7.24.0The text was updated successfully, but these errors were encountered: