eslint-plugin-immutable
eslint-plugin-immutable copied to clipboard
No mutation error on object increment
const obj = { a: 1 };
obj.a++;
console.log(obj);
// { a: 2 }