ESLint is used for code linting.
Install this package and peerDependencies of this package as devDependencies in the project, using install-peerdeps.
npx install-peerdeps --dev @mintlify/eslint-config-next
Alternatively, you can install this package as devDependency and install the peerDependencies separately.
# yarn
yarn add -D @mintlify/eslint-config-next
# npm
npm i -D @mintlify/eslint-config-next
# pnpm
pnpm add -D @mintlify/eslint-config-next
Create a .eslintrc.json
file in the project root that extends this package.
{
"extends": "@mintlify/eslint-config-next",
...
}