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

[eslint-plugin] switch to parserOptions.projectService #32382

Merged

Conversation

jeremymeng
Copy link
Member

@jeremymeng jeremymeng commented Dec 30, 2024

This address the issue when running lint:fix using the first suggestion provided by typescript-eslint

0:0 error Parsing error: ESLint was configured to run on <tsconfigRootDir>/test/public/utils/recordedClient.ts using parserOptions.project: /tsconfig.json
That TSConfig uses project "references" and doesn't include <tsconfigRootDir>/test/public/utils/recordedClient.ts directly, which is not supported by parserOptions.project.
Either:


Packages impacted by this PR

eslint-plugin

Issues associated with this PR

#32350

This address the issue when running `lint:fix` using the first suggestion
provided by typescript-eslint

>  0:0  error  Parsing error: ESLint was configured to run on `<tsconfigRootDir>/test/public/utils/recordedClient.ts` using `parserOptions.project`: <tsconfigRootDir>/tsconfig.json
That TSConfig uses project "references" and doesn't include `<tsconfigRootDir>/test/public/utils/recordedClient.ts` directly, which is not supported by `parserOptions.project`.
Either:
- Switch to `parserOptions.projectService`
- Use an ESLint-specific TSConfig
See the typescript-eslint docs for more info: https://typescript-eslint.io/troubleshooting/typed-linting#are-typescript-project-references-supported
@jeremymeng jeremymeng merged commit d2b05df into Azure:main Dec 30, 2024
17 checks passed
@jeremymeng jeremymeng deleted the eslint/parser-options-project-service branch December 30, 2024 19:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants