Disable automatic refactoring
I'm trying to do a
let a = function() { ... }.bind(someContext, someVariable);
but this is being automatically refactored into
let a = () => { ... }.bind(someContext, someVariable);
which is invalid javascript. How do I get it to stop automatically doing these refactors?
For further context, I am using an .eslintsrc.json and do have the setting "prefer-arrow-callback", but it is set to "warn" and not "error".
Please sign in to leave a comment.
what do you mean saying that it's fixed automatically? PHPStorm never modifies your code silently unless you explicitly instruct it to do this. Did you choose to fix your file with ESLint? Or used 'Convert to arrow function' intention?
>For further context, I am using an .eslintsrc.json and do have the setting "prefer-arrow-callback", but it is set to "warn" and not "error".
- ESLint --fix fixes warning unless you pass --quiet option to it
- no "prefer-arrow-callback" violations are reported for code like