Closed
Description
I just had this idea when another user tried to assign to the state
function argument.
There is actually an eslint rule for that:
no-param-reassign
I'd suggest we either add that rule as a recommendation somehwere in the docs or go even one step farther and create a shareable config package .
That way we could add some more recommended rules in the future.
I'm thinking of later-on adding a self-written eslint-typescript rule that disallows assigning to anything of the type Draft
or something similar.
Metadata
Metadata
Assignees
Labels
No labels