Allow `this` modification in `no-mutation`
See original GitHub issueAs proposed by @scottnonnenberg in https://github.com/jhusain/eslint-plugin-immutable/pull/15, the no-mutation
rule could accept mutations to this
, as they may make sense in some applications.
To do: Accept mutation of the this object, only if a corresponding flag is set.
Issue Analytics
- State:
- Created 7 years ago
- Comments:8 (4 by maintainers)
Top Results From Across the Web
Modifications (genetics) - Wikipedia
The term Modifications in genetics refers to both naturally occurring and engineered changes in DNA. Incidental, or natural mutations occur through errors ...
Read more >Mutation, Repair and Recombination - Genomes - NCBI - NIH
Methylations, for example, often result in modified nucleotides with altered base-pairing properties and so lead to point mutations.
Read more >Genetic Mutation | Learn Science at Scitable - Nature
A mutation is a heritable change in the nucleotide sequence of an organism's DNA that ultimately serves as a source of genetic diversity....
Read more >What is a gene variant and how do variants occur?
A gene variant (or mutation) changes the DNA sequence of a gene in a way that makes it different from most people's.
Read more >New Gene-Editing Technique Offers Scientists Ability to “Turn ...
Targeted mutations to the genome can now be introduced by splitting specific mutator enzymes and then triggering them to reconstitute, ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Hmm, not sure it makes sense. If you only allow
this
to be mutated in the constructor, then you don’t really need it, and you can do it with closures.If you have an other use-case for this, I’m happy to hear it 😃
@jfmengels I was about to open a new issue then I came across this thread, I found this plugin useful and I guess being able to configure mutation of this only inside constructor is somthing thats useful in react apps especially, as you woul often assign
this.state = ..
in constructor but you wouldnt want to do that outside the constructor as state shouldnt be mutated. so somethink like below might be bit more flexibleor even better would be if we can just specify method in the exceptions