-
-
Notifications
You must be signed in to change notification settings - Fork 187
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
Eslint 5.6.0 causes linter errors with prettier? #110
Comments
I'm also encountering this issue with:
Did you find a solution or workaround @SuttonKyle? |
I ended up finding a solution. The problem was because I had two different versions of prettier installed ( The resolution was to determine which packages depended on prettier and deduplicate their dependencies. Both of the packges defined their dependencies with a caret ( My solution might not work for all cases, such as if a package were to be tied to a specific version. The problem was because of duplicated dependencies, and I wouldn't be surprised if more people who are upgrading create-react-app 2 landed here. A dependant of react-scripts, |
Thanks for the investigation @alaycock. I'm going to close this as it seems to be an issue with conflicting prettier versions rather than anything to do with eslint-plugin-prettier |
What version of
eslint
are you using?5.6.0
What version of
prettier
are you using?1.14.2
What version of
eslint-plugin-prettier
are you using?2.6.2
Please paste any applicable config files that you're using (e.g.
.prettierrc
or.eslintrc
files).eslintrc.json
.prettierrc
What source code are you linting?
A React-based web app
What did you expect to happen?
prettier/prettier rules on ESLint to behave as they did before
What actually happened?
I got a bunch of new (mostly small) errors from prettier when running ESLint after upgrading to ESLint 5.6 from 4.19. They almost exclusively had to do with spacing. Terminal output is below:
Any ideas what could be causing these new errors?
The text was updated successfully, but these errors were encountered: