fix: enforce LF line endings to fix lint failures on Windows#4
Open
HeyItsGilbert wants to merge 1 commit intophoinixi:mainfrom
Open
fix: enforce LF line endings to fix lint failures on Windows#4HeyItsGilbert wants to merge 1 commit intophoinixi:mainfrom
HeyItsGilbert wants to merge 1 commit intophoinixi:mainfrom
Conversation
Add .gitattributes with eol=lf and set endOfLine: "lf" in .prettierrc to ensure consistent line endings across all platforms. Convert all existing files from CRLF to LF. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Contributor
Author
|
I was messing with installing this on my resume repo and I realized it didn't publish my changes from last time due to lints. This should hopefully resolve it. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
.gitattributeswith* text=auto eol=lfto enforce LF line endings in the repository regardless of OS"endOfLine": "lf"in.prettierrcto make Prettier explicitly require LFeslint --fixContext
npm run lintwas failing on Windows becausegit config core.autocrlf=truechecks out files with CRLF line endings, but Prettier defaults to expecting LF. This caused every file to reportDelete ␍errors.Test plan
npm run lintpassesnpm run buildsucceeds🤖 Generated with Claude Code