Closed james-Infotrack closed 2 years ago
The problem is not with the typescript-eslint parser but with jscodeshift. You have to tell jscodeshift to use the typescript parser by adding
export const parser = 'typescript';
to the transform.
Thankyou for the update, I've added your comment to the top of my transform window but still get the same error
this one has some react code, I was trying to modify
thanks again
Looks like it should be
export const parser = 'ts';
for Typescript or
export const parser = 'tsx';
if you also need JSX support.
Describe the bug Syntax errors when defining a type
To Reproduce Steps to reproduce the behavior:
Expected behavior I'd love to be able to use it with type definitions inside the file
Screenshots
Browser (please complete the following information):
astexplorer settings:
explorerSettingsV1
(code can be removed if you don't want it to be public)Additional context not sure if this is a PEBCAK error, but this basically kills my progress, so any help would be appreciated cheers