Skip to content
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

Wrong prettier version being used #40

Closed
fpoumian opened this issue Oct 7, 2017 · 1 comment
Closed

Wrong prettier version being used #40

fpoumian opened this issue Oct 7, 2017 · 1 comment

Comments

@fpoumian
Copy link
Contributor

fpoumian commented Oct 7, 2017

While working on a PR, I noticed that when I ran yarn prettier prettier was applying formatting rules different from those in the .prettierrc config file (for example, Double Quotes instead of Single Quotes).

Upon closer inspection, I noticed that the wrong version of prettier was being used:

./node_modules/.bin/prettier --version
// 1.5.2

I think that the .prettierrc configuration file feature was introduced in version 1.6.0, so I think that's the reason the file is being completely ignored. When I run yarn prettier I also get this warning:
Ignored unknown option: --config

@fpoumian
Copy link
Contributor Author

fpoumian commented Oct 7, 2017

Nevermind, apparently I was using an outdated version of Yarn which was causing this problem

@fpoumian fpoumian closed this as completed Oct 7, 2017
jhonmike pushed a commit to jhonmike/reactjs.org that referenced this issue Jul 1, 2020
BetterZxx pushed a commit to BetterZxx/react.dev that referenced this issue Mar 21, 2023
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

No branches or pull requests

1 participant