Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add *.csv to .gitattributes and prevent BOM #1112

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

howard-e
Copy link
Contributor

@howard-e howard-e commented Aug 21, 2024

@howard-e
Copy link
Contributor Author

#1108 (comment)

You're right, it looks like there isn't anything native to git that will clean out the BOM. The encoding is set in .editorconfig, but I'm not sure how that would be enforced

@nschonni what do you think of using a git hook in combination with this?

@howard-e howard-e changed the title Add *.csv to .gitattributes Add *.csv to .gitattributes and prevent BOM Aug 21, 2024
@nschonni
Copy link
Contributor

Yeah, something like https://www.npmjs.com/package/strip-bom-cli with husky + CI doublechecking would probably work

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants