Next.js Discord

Discord Forum

Its possible another config merge with next/core-web-vitals ? [eslint flat ver.9]

Unanswered
Skipjack tuna posted this in #help-forum
Open in Discord
Skipjack tunaOP
I wrapped ESLint flat config using tseslint.config in my TurboRepo project. However, I encountered an issue when trying to extend next/core-web-vitals. It seems the problem arises because tseslint.config already includes a TypeScript parser, and next/core-web-vitals tries to use its own parser, causing a conflict.

How can I merge these two configurations seamlessly?

    "eslint-config-next": "^15.1.4",
    "eslint": "^9.18.0",


const compact = fixupConfigRules([...nextConfigJs, ...flatCompat.extends('next/core-web-vitals')]);



Error: Error while loading rule '@typescript-eslint/await-thenable': You have used a rule which requires type information, but don't have parserOptions set to generate type information for this file. See https://typescript-eslint.io/getting-started/typed-linting for enabling linting with type information.
Parser: (unknown)
Note: detected a parser other than @typescript-eslint/parser. Make sure the parser is configured to forward "parserOptions.project" to @typescript-eslint/parser.

0 Replies