Open Yash-Singh1 opened 2 years ago
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.
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, theparserServices
is undefinedTo Reproduce Steps to reproduce the behavior:
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):
astexplorer settings:
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