Skip to content

2.7.2 is changing the formatting of some Typescript files #748

@espada-edalex

Description

@espada-edalex

I currently have 2.7.1 installed and renovatebot has opened up a version bump to 2.7.2 and the CI/CD job for prettier is now failing because of a number of "error" in *.ts and *.tsx files. The only changes are to the version of prettier-plugin-java. All of the changes are removing () from anomyous functions, for example

-    onSuccess: (createdResource) => {
+    onSuccess: createdResource => {
-          onChange={(e) => field.handleChange(e.target.value)}
+          onChange={e => field.handleChange(e.target.value)}
-  render: (args) => (
+  render: args => (

Switching between my main and renovate/prettier-plugin-java-2.x branches and running npm i does show that the changes only happen after bumping prettier-plugin-java.

I tried comparing the 2 versions (prettier-plugin-java@2.7.1...prettier-plugin-java@2.7.2) but couldn't see anything that might be causing this.

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions