Skip to content

chore: add root-level .gitattributes for cross-platform consistency#2669

Open
faisalnugroho wants to merge 2 commits into
coinbase:mainfrom
faisalnugroho:feat/add-gitattributes
Open

chore: add root-level .gitattributes for cross-platform consistency#2669
faisalnugroho wants to merge 2 commits into
coinbase:mainfrom
faisalnugroho:feat/add-gitattributes

Conversation

@faisalnugroho
Copy link
Copy Markdown

Summary

Adds .gitattributes to ensure consistent line endings and file handling across platforms.

Changes

  • Sets LF as default line ending for all text files
  • Marks binary files correctly (images, fonts)
  • Marks lock files as generated (no diff noise)
  • Covers JS/TS, Web, Config, Shell scripts

Motivation

Windows and macOS handle line endings differently. .gitattributes ensures consistent behavior regardless of OS, preventing cross-platform issues.

Closes #2657

Adds .gitattributes to ensure consistent line endings across platforms.
- Sets LF as default line ending for all text files
- Marks binary files correctly (images, fonts)
- Marks lock files as generated (no diff)

Closes coinbase#2657
@cb-heimdall
Copy link
Copy Markdown

🟡 Heimdall Review Status

Requirement Status More Info
Reviews 🟡 0/1
Denominator calculation
Show calculation
1 if user is bot 0
1 if user is external 0
2 if repo is sensitive 0
From .codeflow.yml 1
Additional review requirements
Show calculation
Max 0
0
From CODEOWNERS 0
Global minimum 0
Max 1
1
1 if commit is unverified 1
Sum 2

@vercel
Copy link
Copy Markdown

vercel Bot commented May 28, 2026

@faisalnugroho is attempting to deploy a commit to the Coinbase Team on Vercel.

A member of the Team first needs to authorize it.

@faisalnugroho
Copy link
Copy Markdown
Author

Hi! Following up on this tooling PR. This PR adds .gitattributes for cross-platform line ending consistency, preventing CRLF/LF mismatches on Windows.

All CI checks pass (StepSecurity ✅). Would love to get your review when you have a moment. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

Add root-level .gitattributes for cross-platform consistency

2 participants