Skip to content

Latest commit

 

History

History
58 lines (41 loc) · 928 Bytes

README.md

File metadata and controls

58 lines (41 loc) · 928 Bytes

@marzee/eslint

Ready-to-use ESLint configuration for Next.js/TypeScript projects

@marzee/eslint provides a set of opinionated ESLint configurations for Next.js/TypeScript projects.

Usage

Non-Monorepo

/** @type {import("eslint").Linter.Config} */
const config = {
  extends: '@marzee/eslint-config/nextjs',
  // ⚠️ Careful: it's next*js* not *next*
};

module.exports = config;

Monorepo

/** @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;

⚠️ Pay attention

It's nextjs NOT next

Install

npm i -D @marzee/eslint-config
pnpm i -D @marzee/eslint-config
yarn add -D @marzee/eslint-config

License

ISC