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
Is your feature request related to a problem? Please describe.
As posted on slack:
Jay Phelps @_jayphelps
I feel very strongly that array.sort() in JS should 100% of the time be put on it's own line and return value never used. sort() mutates the original array, and returns that same array again, so when chained with functional methods like map/filter/reduce is very bug prone later https://pbs.twimg.com/media/EJnuzRGXkAIPCvB.png
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.
You can add the fresh label to prevent me from taking any action.
If this is a discussion thread, the most voted option will be final. Thank you for your contributions.
Is your feature request related to a problem? Please describe.
As posted on slack:
Describe the solution you'd like
Reference: https://github.com/cartant/eslint-plugin-etc/blob/master/source/rules/no-assign-mutated-array.ts
The text was updated successfully, but these errors were encountered: