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
[Feature] Rename .yarnrc
into .yarnrc.yml
#239
Comments
Just want to note that it should probably be |
Since most other yaml files I've seen in use in the JS community use Related: pnpm/pnpm#1380 |
There will be one significant issue: |
Done in #244 |
When converting a project to v2 I run If I then run The old |
So you shouldn't need the |
I think this is a false assumption, e.g. ESLint supports both but gives
So instead of using |
Works for me, thanks |
Describe the user story
I'm a user, I want to migrate to Yarn 2. It's currently a real pain to deal with v1 rc files versus v2 rc files, both because of the syntax and the different configuration keys.
Describe the solution you'd like
I initially kept the
.yarnrc
name because why not, but thinking about it we might have a better time using a different name. I think using.yarnrc.yml
would be a good idea because:.yarnrc
altogether (and thus wouldn't have to deal with old-style syntax, old-style settings, ...)berry:
hack to have configuration for the two tools# yarn lockfile v1
detection, which doesn't work well for manually-created rc files (I used to remove them a lot)..babelrc
as a Javascript counterpart with.babelrc.js
, and it's the same thing for ESLint.yarnrc.js
, if we decide to do this.Describe the drawbacks of your solution
It might be surprising at first why the settings aren't applied. I'm not sure we can do much to avoid this (we potentially could read the
.yarnrc
and throw if it contains v2 keys, but that sounds fishy).Describe alternatives you've considered
.berryrc
.The text was updated successfully, but these errors were encountered: