You want the environment: node
that includes process
.
Update the env
section of your .eslintrc.js
file to include it:
env: {
node: true,
},
Since Next.js runs code in both the browser and server (Node.js) environments, you'll want both node
and browser
environments:
env: {
node: true,
browser: true,
},