codeclimate-eslint icon indicating copy to clipboard operation
codeclimate-eslint copied to clipboard

unexpected issues - update prettier

Open efueger opened this issue 5 years ago • 1 comments

A customer wrote in reporting they're encountering a large number of codeclimate errors indicating there's a discrepancy somewhere and it's not linting to the same set of rules.

I think the source might be the the prettier dependency version used by the plugin.


Customer's using eslint-5,

(I tried Contributing instructions, but ran into other dependencies that will need to be upgraded. I prefer a second set of eyes/hands to help with this.)

efueger avatar Mar 09 '20 16:03 efueger

latest prettier version is v6.10.0

Latest prettier version is 2.3.1. You're linking to eslint-config-prettier project.

You need to install an exact Prettier version. https://prettier.io/docs/en/install.html

Install an exact version of Prettier locally in your project. This makes sure that everyone in the project gets the exact same version of Prettier. Even a patch release of Prettier can result in slightly different formatting, so you wouldn’t want different team members using different versions and formatting each other’s changes back and forth.

And I suspect further complications related to eslint-plugin-prettier and/or eslint-config-prettier as well, but that's something I'm trying to verify.

sinani avatar Jun 21 '21 16:06 sinani