You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Associated files cannot be formatted if the file extension is not a standard JavaScript or TypeScript extension.
Instead of the file being formatted, an error occurs:
Error formatting text. Error: Expected ',', got 'EmptyArray' at file:///__fixtures__/visit.ts.txt:10:8
Changing the extension to .ts makes the error go away, but this is not ideal when working with file fixtures. I want my fixtures formatted, but not linted or typechecked.
Describe the bug
dprint-plugin-typescript version:
0.90.5
Associated files cannot be formatted if the file extension is not a standard JavaScript or TypeScript extension.
Instead of the file being formatted, an error occurs:
Changing the extension to
.ts
makes the error go away, but this is not ideal when working with file fixtures. I want my fixtures formatted, but not linted or typechecked.Input Code
Expected Output
See input code.
Actual Output
See input code.
.dprint.jsonc
The text was updated successfully, but these errors were encountered: