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

Open
MingyaoLiu opened this issue Oct 21, 2024 · 1 comment
Open

Prettier removing type casting, not sure why #3552

MingyaoLiu opened this issue Oct 21, 2024 · 1 comment

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.

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

1 participant