I have installed eslint in my machine and i have used visual studio code i have certain modules and process to be exported When i try to use \"module\" or \"process\" it shows
In your ESLint config file, simply add this:
{
...
env: {
node: true
}
...
}
That should fix the "module" is not defined
and "process" is not defined
error.
If you want to prevent ESLint from linting some globals then you will need to add the specific global variables in the globals
section of the config.
globals: {
window: true,
module: true
}