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

Prettier removing type casting, not sure why #3552

Closed
MingyaoLiu opened this issue Oct 21, 2024 · 2 comments
Closed

Prettier removing type casting, not sure why #3552

MingyaoLiu opened this issue Oct 21, 2024 · 2 comments
Labels

Comments

@MingyaoLiu
Copy link

example:

export interface PropsView extends PropsWithChildren<ViewProps>{ style?: Style | Style[] }
gets auto formatted to

export interface PropsView extends PropsWithChildren{ style?: Style | Style[] }

prettier setting can be anything, tried no setting only default:

"parser": "typescript", "useTabs": false, "tabWidth": 2, "endOfLine": "lf"

Not sure why this is happening?

@MingyaoLiu
Copy link
Author

it won't remove the <ViewProps> if I put // prettier-ignore above the line.

Copy link

This issue has been labeled as stale due to inactivity. Reply to keep this issue open.

@github-actions github-actions bot added the Stale label Dec 21, 2024
@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Dec 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant