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

feat: add parenExpression.spaceAround #607

Merged
merged 4 commits into from
Feb 8, 2024

Conversation

Thristhart
Copy link
Contributor

This adds spaces around the contents of parenthesis expressions. Examples:

// "parenExpression.spaceAround": false
(x.test as unknown) = 6;
// "parenExpression.spaceAround": true
( x.test as unknown ) = 6;

// "parenExpression.spaceAround": false
({ prop: 5 }).prop;
// "parenExpression.spaceAround": true
( { prop: 5 } ).prop;

// "parenExpression.spaceAround": false
const c = (1 + 1) + 1;
// "parenExpression.spaceAround": true
const c = ( 1 + 1 ) + 1;

@dsherret dsherret merged commit 90a5d64 into dprint:main Feb 8, 2024
3 checks passed
@dsherret
Copy link
Member

dsherret commented Feb 8, 2024

Thanks!

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.

2 participants