Arthur,
This error is coming from ESLint’s prefer-const
rule. I don’t think this is on by default.
Do you have an ESLint configuration file in your project, like .eslintrc.js
? The idea would be to find the file and disable the rule within there. It may be something that’s explicitly turned on, or on by default if your ESLint configuration extends some other configuration – in which case you can add an explicit rule to disable it. Of course, if you don’t care for ESLint at all, you can disable it entirely, though I don’t think that’s what you want.
Hope this helps, do let us know if you need further assistance.