Replies: 3 comments
-
What error are you currently getting? Is it for the "no-let" or "immutable-data" rule? |
Beta Was this translation helpful? Give feedback.
-
I get And a |
Beta Was this translation helpful? Give feedback.
-
I'd recommended setting the option "ignoreAccessorPattern" for "immutable-data". If you aren't reassigning the variable then you should use |
Beta Was this translation helpful? Give feedback.
-
Is there a rule that lets me mutate a local object? Something like:
I feel that maybe there should be an allowLocalMutation rule that allows the code above, for those who want to be less strict about total immutability and only want the input parameters to be immutable?
Beta Was this translation helpful? Give feedback.
All reactions