From 4a02d633bf5dc5875983974508df75b97f7b80d8 Mon Sep 17 00:00:00 2001 From: Ashlen Date: Fri, 12 Jun 2026 15:50:25 -0600 Subject: [PATCH] fix(tooling): protect asset files from editorconfig normalization The trim/newline exception covered only the four vendored directories; root-level hashed assets (favicon..svg verifiably lacks a final newline) were left exposed to editor-side normalization that would break their content hashes. Disable both fixers for png/webp/svg/ico/woff2 everywhere. The pre-commit gate already protected these at commit time, so this closes the editor-side half only. --- .editorconfig | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.editorconfig b/.editorconfig index 2898f30..50421b8 100644 --- a/.editorconfig +++ b/.editorconfig @@ -17,3 +17,10 @@ indent_style = tab [{fonts,stagit,migration,pubkeys}/**] insert_final_newline = false trim_trailing_whitespace = false + +# Binary and hashed image/icon assets anywhere in the tree: an editor save +# must never alter their bytes — content-hashed filenames break otherwise +# (favicon..svg legitimately lacks a final newline). +[*.{png,webp,svg,ico,woff2}] +insert_final_newline = false +trim_trailing_whitespace = false