Closed lumirlumir closed 4 months ago
The latest updates on your projects. Learn more about Vercel for Git ↗︎
Name | Status | Preview | Comments | Updated (UTC) |
---|---|---|---|---|
19-react-dev | ✅ Ready (Inspect) | Visit Preview | 💬 Add feedback | Jul 1, 2024 3:43am |
react-dev | ✅ Ready (Inspect) | Visit Preview | Jul 1, 2024 3:43am |
Hi @lumirlumir!
Thank you for your pull request and welcome to our community.
In order to merge any pull request (code, docs, etc.), we require contributors to sign our Contributor License Agreement, and we don't seem to have one on file for you.
In order for us to review and merge your suggested changes, please sign at https://code.facebook.com/cla. If you are contributing on behalf of someone else (eg your employer), the individual CLA may not be sufficient and your employer may need to sign the corporate CLA.
Once the CLA is signed, our tooling will perform checks and validations. Afterwards, the pull request will be tagged with CLA signed
. The tagging process may take up to 1 hour after signing. Please give it that time before contacting us about it.
If you have received this in error or have any questions, please contact us at cla@meta.com. Thanks!
Thank you for signing our Contributor License Agreement. We can now accept your code for this (and any) Meta Open Source project. Thanks!
Hello 😊
For general Windows users, when cloning the react.dev repository,
LF
often automatically changes toCRLF
if no special settings are made in the editor. Typically, this changes back toLF
during commits.However,
LF
does not occur properly.CRLF
automatic conversion on Windows, users must use commands likegit config --global core.autocrlf false
, which is a drawback as it relies on personal settings of the user.CRLF
is changed back toLF
during commits. However, since all file line endings are changed toCRLF
after cloning the repository on Windows, there is a major drawback where all files are marked as modified.Example of an error situation:
On windows, After adding a comment
// add test
to the404.js
file and enteringgit commit -m "test"
, all files withCRLF
are changed toLF
, resulting in over 100 files showing changes.Therefore, to ensure smooth compatibility between Windows and Linux/Mac users, I propose the adoption of
.editorconfig
, which is used in various repositories like 'react', 'eslint' and 'prettier'. By enforcing the use ofLF
, it is expected that Windows users will experience less confusion due toCRLF
/LF
issues during development.Furthermore, I would like to tell you that after adopting
.editorconfig
, all the above-mentioned errors have been resolved. Thank you for your attention to this matter :)