Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Inaccurate and misleading error message for misconfigured parserOptions.project in nx >=17.2.x #23088

Open
1 of 4 tasks
JoshuaKGoldberg opened this issue Apr 30, 2024 · 0 comments
Assignees
Labels
scope: linter Issues related to Eslint support in Nx type: bug

Comments

@JoshuaKGoldberg
Copy link
Contributor

JoshuaKGoldberg commented Apr 30, 2024

Current Behavior

Similar to #20731, in trying to upgrade typescript-eslint to ESLint v9 we get:

> nx run eslint-plugin:lint


Linting "eslint-plugin"...

Error: You have attempted to use the lint rule deprecation/deprecation which requires the full TypeScript type-checker to be available, but you do not have `parserOptions.project` configured to point at your project tsconfig.json files in the relevant TypeScript file "overrides" block of your project ESLint config `packages/eslint-plugin/.eslintrc.json`

Please see https://nx.dev/guides/eslint for full guidance on how to resolve this issue.

Expected Behavior

  • We don't have a .eslintrc.json file. This should specify the actual path to the ESLint config being used.
  • It's unclear which file(s) are being linted without parserOptions. Can it at least print the offending file throwing the error please?

GitHub Repo

typescript-eslint/typescript-eslint@0948bf2

Steps to Reproduce

  1. Check out that commit
  2. yarn
  3. nx run eslint-plugin:lint

Nx Report

Node   : 20.11.0
OS     : darwin-arm64
yarn   : 3.8.1

nx             : 18.2.3
@nx/js         : 18.2.3
@nx/jest       : 18.2.3
@nx/linter     : 18.2.3
@nx/eslint     : 18.2.3
@nx/workspace  : 18.2.3
@nx/devkit     : 18.2.3
@nrwl/tao      : 18.2.3
typescript     : 5.4.3

Failure Logs

No response

Package Manager Version

No response

Operating System

  • macOS
  • Linux
  • Windows
  • Other (Please specify)

Additional Information

See CI failures in: https://github.com/typescript-eslint/typescript-eslint/actions/runs/8885830518/job/24398214980?pr=9002

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
scope: linter Issues related to Eslint support in Nx type: bug
Projects
None yet
Development

No branches or pull requests

3 participants