Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Feature: Improve error message reported by getParserServices #8482

Closed
@disaacson

Description

@disaacson

Suggestion

I'm getting an error from this line
https://github.com/typescript-eslint/typescript-eslint/blame/18c3216485c381dd0215cfa7099f33bc721c8efe/packages/utils/src/eslint-utils/getParserServices.ts#L93

Error: Error while loading rule '@typescript-eslint/no-base-to-string': 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.
Note: detected a parser other than @typescript-eslint/parser. Make sure the parser is configured to forward "parserOptions.project" to @typescript-eslint/parser.

I would like to submit a pull request to include in the error message the parserPath value that is causing the error. That could help with debugging this issue when it arises.

Metadata

Metadata

Assignees

No one assigned

    Labels

    accepting prsGo ahead, send a pull request that resolves this issuelocked due to agePlease open a new issue if you'd like to say more. See https://typescript-eslint.io/contributing.repo maintenancethings to do with maintenance of the repo, and not with code/docs

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions