http://eslint.org/docs/rules/no-param-reassign with {props: true}
option.
It's useful to prevent mistakes like modifying the user supplied object (which I still manage to do...).
I've not enabled the rule yet as it's useful to be able to do foo = foo || {}
, but with default arguments in Node.js 6, this will no longer be needed.
I would like to enable this on esnext
when Node.js 6 has been out for a while.
@jamestalmage @jfmengels @vdemedes Thoughts?
Relevant: eslint/eslint#2770
Pay now to fund the work behind this issue.
Get updates on progress being made.
Maintainer is rewarded once the issue is completed.
You're funding impactful open source efforts
You want to contribute to this effort
You want to get funding like this too