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

Provide parserServices when using @typescript-eslint/parser #665

Open
Yash-Singh1 opened this issue Aug 15, 2022 · 1 comment
Open

Provide parserServices when using @typescript-eslint/parser #665

Yash-Singh1 opened this issue Aug 15, 2022 · 1 comment

Comments

@Yash-Singh1
Copy link

Describe the bug
A clear and concise description of what the bug is.

When I am trying to use the parserServices to make a typed rule in typescript eslint, the parserServices is undefined

To Reproduce
Steps to reproduce the behavior:

  1. Go to the ast explorer
  2. Select the parser as typescript eslint
  3. Try to access parser services
  4. Notice it is not filled

Expected behavior
A clear and concise description of what you expected to happen.

parserServices are provided

Screenshots
If applicable, add screenshots to help explain your problem.

Browser (please complete the following information):

  • OS: Ubuntu 20
  • Browser chrome
  • Version [e.g. 22]

astexplorer settings:

  • Selected parser: typescript eslint
  • Selected transformer (if applicable): typescript eslint
  • Contents of the local storage key explorerSettingsV1 (code can be removed if you don't want it to be public)

Additional context
Add any other context about the problem here.

The problem is related to setting parseroptions.object, as seen here

https://github.com/typescript-eslint/typescript-eslint/blob/830b9463fc80ee3deba435f273e73fa6339564e7/packages/utils/src/eslint-utils/getParserServices.ts#L5

@DerekRies
Copy link

I don't think this is a bug, but more of a feature request to include an actual @typescript-eslint transform. Afaik there's only the @typescript-eslint/parser and an ESLint transform. The parserServices stuff is included with @typescript-eslint/utils, not the parser, nor the base eslint package.

Adding that would make this an exceptionally powerful tool though.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants