I am using node.js to create a web application. When I run the application (either by opening index.html on the browser or using the command \"npm start\" on the terminal) I
I had the same problem solved it by going into my .eslintrc.js file to configure my globals variables, adding require and process to the globals variable and setting the corresponding value equal to "writable". Hope it works for you.
this link really helped https://eslint.org/docs/user-guide/configuring#specifying-globals