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 2.8.2 adds superfluous parentheses to TSTypeOperator #14162
Comments
👋 @powercover! This change is intended, see #13546 and #14042 |
I'm not sure if my opinion will be the majority opinion or not, but this change should IMO warrant a major version bump, not just a patch version. Upgrading prettier to 2.8.2 breaks builds that were green before. |
|
We're having this same issue. It introduces unexpected behavior. Also creates a massive war between prettier and eslint-config-prettier. The IDE displays an error while the CLI doesn't. At least an option to disable this would be nice. EDIT: Locking to 2.8.1 fixes it for now. As it trigger massive changes to our codebase. At least a major version warning would be nice. |
Any way to disable this rule? I want to update the package in my project but this is resulting in wrong output.
|
Environments:
Input:
// prettier adds superfluous parentheses
// adding brackets around
typeof something
type SomeType = typeof something[number];
Expected output:
type SomeType = typeof something[number];
Actual output:
type SomeType = (typeof something)[number];
The text was updated successfully, but these errors were encountered: