Skip to content

fix: remove UTF-8 BOM from tracked source files - #70

Merged
hacksynth merged 1 commit into
mainfrom
claude/issue-52-20260502-1632
May 2, 2026
Merged

hacksynth merged 1 commit into
mainfrom
claude/issue-52-20260502-1632

Conversation

@hacksynth

Copy link
Copy Markdown
Owner

Closes #52

Summary

  • Remove UTF-8 BOM from tracked source/config files.
  • Add scripts/check-no-bom.js using CommonJS so it runs in this package without type: module.
  • Wire npm run check:bom and lint-staged to reject future BOMs.

Review notes

  • Opened from Claude branch claude/issue-52-20260502-1632 after confirming the checker script uses require(...) and package references point to node scripts/check-no-bom.js.

Strip EF BB BF from 52 tracked files. Add scripts/check-no-bom.js
(CommonJS require() — no ESM import, runs as plain .js) with check
and --fix modes. Wire it into package.json as check:bom script and
add it to lint-staged so staged files are blocked if they contain a BOM.

Closes #52

Co-authored-by: hacksynth <hacksynth@users.noreply.github.com>
@hacksynth
hacksynth merged commit 4bb3611 into main May 2, 2026
13 checks passed
@hacksynth
hacksynth deleted the claude/issue-52-20260502-1632 branch May 3, 2026 01:12
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.

Remove UTF-8 BOM from tracked source and config files

1 participant