mage icon indicating copy to clipboard operation
mage copied to clipboard

chore(project): 🔧 add editor config and line normalization

Open sheldonhull opened this issue 4 years ago • 2 comments

Feel free to reject this as not a priority change, just something that might help as I noticed a recent docs update flagged a line ending change unnecessarily when I updated README.md.

Recently discovered contributions can have some conflicting behavior depending on macOS, Linux, or Windows as the source system.

With gitattributes, the conflict of line endings can be solved without worrying about the user's personal gitconfig settings by including the line normalization in the actual gitattributes file.

The advantage of this is that your end of line configuration now travels with your repository and you don't need to worry about whether or not collaborators have the proper global settings.

The editor config can also help eliminate conflicts by ensuing personal editor preferences don't conflict between other contributors.

github docs

sheldonhull avatar Aug 06 '21 19:08 sheldonhull

need to revert the readme update as forgot to reset this as a separate PR. ✅ done. This PR contains no readme updates now.

Regardless if you approve or not, thank you for the project!

sheldonhull avatar Aug 06 '21 19:08 sheldonhull

Yeah I'll look at this again tonight. I have some reservations about random config files for a million things.... But I appreciate the attempt to keep things consistent.

natefinch avatar Sep 29 '21 21:09 natefinch

💀

sheldonhull avatar Oct 20 '22 04:10 sheldonhull