Parser / project errors
If you use parserOptions.project, ESLint needs the correct TS config location.
Common fixes:
- Ensure
tsconfig.jsonexists - Set
tsconfigRootDir - For monorepos: point
projectto each package tsconfig
Example:
js
parserOptions: {
project: ["./packages/*/tsconfig.json"],
tsconfigRootDir: import.meta.dirname,
}