Ready-to-use ESLint configuration for Next.js/TypeScript projects
@marzee/eslint
provides a set of opinionated ESLint configurations for Next.js/TypeScript projects.
/** @type {import("eslint").Linter.Config} */
const config = {
extends: '@marzee/eslint-config/nextjs',
// ⚠️ Careful: it's next*js* not *next*
};
module.exports = config;
/** @type {import("eslint").Linter.Config} */
const config = {
extends: '@marzee/eslint-config/nextjs',
settings: {
next: {
// Next-ESLint can't properly detect the root directory in a monorepo
rootDir: 'packages/app'
}
}
};
module.exports = config;
It's nextjs
NOT next
npm i -D @marzee/eslint-config
pnpm i -D @marzee/eslint-config
yarn add -D @marzee/eslint-config
ISC