Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Initial attempt to add a no-array-mutation rule #5
This is currently a simplistic check that looks for calls of array methods that mutate.
I'm new to Eslint and so I'm not sure if there is a way to make this check more specific to arrays.
Not confident that this change wouldn't negatively impact users of ImmutableJS. Unfortunately I don't think we can assume that methods with the same name as the Array methods are mutating. maybe if confirm there is nothing capturing the return value this would be safe. Seems like a prohibition on that would encompass this.