title: Eslint no-return-assing and no-param-reassign error
body: <pre><code>const someId = data.id;
                  values.some_id = someId;
                  values.updateParams.map(
                      params =&gt; params.some_another_id = someId,
                  );
  </code></pre>
  
  <p>In the above code, eslint is throwing some error and won't be able to understand those.
  Here I added the screenshots of the error.</p>
  
  <p><a href="https://i.stack.imgur.com/wSWRv.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/wSWRv.png" alt="enter image description here"></a>
  <a href="https://i.stack.imgur.com/rv3At.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/rv3At.png" alt="enter image description here"></a></p>