Basic Features: ESLint | Next.js
Since version 11.0.0, Next.js provides an integrated ESLint experience out of the box. Add next lint as a script to package.json: Then run npm run lint or yarn lint: If you don't already have ESLint configured in your application, you will be guided through the installation and configuration process.
https://nextjs.org/docs/basic-features/eslint#disabling-rules