To help ensure consistent coding standards and improve cross-platform collaboration, I propose adding the following files to the repository:
-
.editorconfig – Helps enforce consistent indentation, line endings, charset, etc., across different editors and IDEs.
-
.gitattributes – Useful for defining how Git should handle line endings and text encoding, and for marking binary files.
Benefits:
-
Prevents common formatting issues (e.g., mixed tabs/spaces, inconsistent line endings).
-
Simplifies collaboration by aligning developer environments automatically.
-
Reduces noise in diffs caused by inconsistent formatting.