Skip to content

fix: align arrowParens option's default with Prettier#749

Merged
jtkiesel merged 1 commit intojhipster:mainfrom
jtkiesel:fix/arrow-parens-default
Jul 15, 2025
Merged

fix: align arrowParens option's default with Prettier#749
jtkiesel merged 1 commit intojhipster:mainfrom
jtkiesel:fix/arrow-parens-default

Conversation

@jtkiesel
Copy link
Contributor

What changed with this PR:

The arrowParens option's default was set to avoid, while Prettier's own default is always. Apparently, the result is that using prettier-plugin-java causes Prettier's own default to be changed. This PR changes the default to always to align with Prettier's default to avoid causing changes to non-Java files by overriding default values of common options.

This was the best temporary solution I could come up with. Going forward we may need to find some other solution for this to avoid having to try to keep these common options in lockstep with Prettier's.

Relative issues or prs:

Closes #748

@jtkiesel jtkiesel merged commit 8a80c5f into jhipster:main Jul 15, 2025
6 checks passed
@jtkiesel jtkiesel deleted the fix/arrow-parens-default branch July 15, 2025 16:08
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.7.2 is changing the formatting of some Typescript files

1 participant

Comments