'require' and 'process' is not defined in ESlint. problem with node?
To specify environments in a configuration file, use the env key and specify which environments you want to enable by setting each to true. For example, the following enables the browser, es6 and Node.js environments:
In your .eslintrc.js
file ;
...
env: {
browser: true,
node: true, <<<<--- Add this
es6: true
},
...