Skip to content

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.

3 participants