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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(fmt): remove some unnecessary parens in types #14841

Merged
merged 1 commit into from
Jun 13, 2022

Conversation

dsherret
Copy link
Member

@dsherret dsherret commented Jun 10, 2022

Before:

type Test = (string | number);

After:

type Test = string | number;

Also fixes an edge case of someone having a back slash as the last character in a JSX string literals (which work differently than regular string literals 馃檮):

// should format as-is, but previously removed the back slash
const t = <div prop="\" />;

@dsherret dsherret merged commit 5fffb77 into denoland:main Jun 13, 2022
@dsherret dsherret deleted the fix_fmt_remove_parens_more branch June 13, 2022 01:00
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

Successfully merging this pull request may close these issues.

None yet

2 participants