eslint-plugin-immutable
eslint-plugin-immutable copied to clipboard
ESLint plugin to disable all mutation in JavaScript.
Alternate title: **Disallow function calls whose return values are discarded.** Based on [this blog post](http://blog.jenkster.com/2015/12/which-programming-languages-are-functional.html), when you call a function and don’t use it’s return value, chances are high that...
I think in its current form it might be a good idea to clarify at the top that this doesn't prevent _all_ ways you can mutate? Alternatively.. all the additional...
I think these rules are a great idea! For those interested in using it with TypeScript I've started work on a TSLint version [here](https://github.com/jonaskello/tslint-immutable).
```js const obj = { a: 1 }; obj.a++; console.log(obj); // { a: 2 } ```