const path = require("path") module.exports = { root: true, extends: ["next/core-web-vitals"], // `no-html-link-for-pages` resolves the pages/app directory from this // setting; without it the rule throws on an undefined path and takes the // whole lint run down with it. settings: { next: { rootDir: __dirname, }, }, ignorePatterns: [ "node_modules/", ".next/", "mock-backend/", "next-sitemap.js", ], }