How to avoid the ‘no-param-reassign’ rule with a input’s handleChange?

I’m working to build a React Textarea that auto grows/shrinks as the user types. I’ve built my component inspired by this codepen: https://codepen.io/Libor_G/pen/eyzwOx While I have this working nicely, I’m getting an es-lint error I’m unsure how to correctly resolve. eslint is not liking that I’m using the event param in the handleChange function. What is the right way to resolve this? My REACT UIC: Answer You can either disable the rule as I mentioned in my comment like the following: /*eslint no-param-reassign: [“error”, { “props”: false }]*/ Or if you don’t prefer to ignore eslint, you can assign your

How can I use ESLint no-unused-vars for a block of code?

I need to disable some variable checks in ESLint. Currently, I am using this code, but am not getting the desired result: /* eslint no-unused-vars: [“error”, { “caughtErrorsIgnorePattern”: “Hey” }] *…

How to configure eslint indent for WebStorm?

How to set “indent” in .eslintr.json to match the default used in WebStorm? Everything I’ve tried so far, as per the official documentation can’t match it: “indent”: [“error”, 2] – gives many …