Closed
Description
Before You File a Bug Report Please Confirm You Have Done The Following...
- I have tried restarting my IDE and the issue persists.
- I have updated to the latest version of the packages.
- I have searched for related issues and found none that matched my issue.
- I have read the FAQ and my problem is not listed.
Issue Description
Right now, if you try to lint a file with a typed lint rule but don't enable type information, you get:
Error: Error while loading rule '@typescript-eslint/await-thenable': You have used a rule which requires parserServices to be generated. You must therefore provide a value for the "parserOptions.project" property for @typescript-eslint/parser.
That error used to be correct. But now that we've unleashed parserOptions.projectService
(https://typescript-eslint.io/blog/announcing-typescript-eslint-v8/#project-service), it's no longer accurate. We recommend parserOptions.projectService
over parserOptions.project
.
We should update the error.
Reproduction Repository Link
https://github.com/JoshuaKGoldberg/repros/tree/tseslint-outdated-error-without-type-information
Repro Steps
- clone the repo
npm install
npm run lint
Versions
package | version |
---|---|
@typescript-eslint/utils |
9.11.0 |