@apitree.cz/eslint-config-nextjs
v1.0.1
Published
ESLint configuration for Next.js projects in ApiTree.
Readme
ESLint Config Next.js
ESLint configuration for Next.js projects in ApiTree
Installation
This package must be used in conjunction with the base @apitree.cz/eslint-config and @apitree.cz/eslint-config-react packages. Make sure all are installed:
pnpm add --save-dev @apitree.cz/eslint-config @apitree.cz/eslint-config-react @apitree.cz/eslint-config-nextjs eslintMonorepos
Install and use the package in the root only.
Usage
Define base, react, and nextjs configurations in your repository's root eslint.config.js file:
import { defineConfig } from 'eslint/config';
import { base } from '@apitree.cz/eslint-config';
import { react } from '@apitree.cz/eslint-config-react';
import { nextjs } from '@apitree.cz/eslint-config-nextjs';
export default defineConfig(base, react, nextjs(['apps/<nextjs-app>']));Omit the
appsarray argument if you have a single Next.js app repository (no monorepo).
Editor / IDE Setup
For the recommended IDE setup (e.g., IntelliJ), please refer to the setup guide in the base package README.
