Open rbpimenta opened 3 weeks ago
Hello, I had this issue too, and found out that I had 2 versions of prettier installed. Properly using a single version solved the issue.
Watch out that bins used in scripts may not be the same as the one used directly in your shell, or by your IDE.
I'm using the following command as a "pretest" on my build CI
eslint . --fix && prettier --write ./src ./resource
. After upgrading to prettier 3.3.3 I'm receiving the following message on my CI code.It seems that the code is been transformed from this
to this (it's adding parenthesis on the code )
I believe that the problem is somehow related with the changes on the new prettier 3.3.3 version. More specific these two PRs
What version of
eslint
are you using? 8.57.0What version of
prettier
are you using? 3.3.3What version of
eslint-plugin-prettier
are you using? 5.2.1Please paste any applicable config files that you're using (e.g.
.prettierrc
or.eslintrc
files) .prettierrc.json.eslintrc.json
What source code are you linting?
What did you expect to happen?
I'd expect the code to pass on CI.
What actually happened?
eslint error