Skip to content

Invoke is a leading creative engine that uses image and video generation models to empower professionals, artists, and enthusiasts to generate and create visual media using the latest AI-driven technologies. The solution offers an industry-leading application interface, and serves as the foundation for multiple commercial products.

chore: check out frontend sources with LF regardless of core.autocrlf

Alexander Eichhorn7df4aac27f6b
diff --git a/.gitattributes b/.gitattributes
index 6cf175e7c5..8d2e4d195a 100644
--- a/.gitattributes
+++ b/.gitattributes
@@ -3,5 +3,26 @@
# For more info see: https://www.aleksandrhovhannisyan.com/blog/crlf-vs-lf-normalizing-line-endings-in-git/
* text=auto
docker/** text eol=lf
+
+# The frontend formatters read the file on disk, so a CRLF working tree makes `format:check` fail
+# for every file -- including ones nobody touched. That leaves contributors on Windows unable to run
+# the same check CI runs, which is how formatting errors reach CI in the first place.
+#
+# Only the working copy changes: these files are already stored with LF (`* text=auto` normalizes on
+# commit), so nothing in history is rewritten.
+invokeai/frontend/**/*.ts text eol=lf
+invokeai/frontend/**/*.tsx text eol=lf
+invokeai/frontend/**/*.mts text eol=lf
+invokeai/frontend/**/*.js text eol=lf
+invokeai/frontend/**/*.jsx text eol=lf
+invokeai/frontend/**/*.mjs text eol=lf
+invokeai/frontend/**/*.cjs text eol=lf
+invokeai/frontend/**/*.json text eol=lf
+invokeai/frontend/**/*.webmanifest text eol=lf
+invokeai/frontend/**/*.css text eol=lf
+invokeai/frontend/**/*.html text eol=lf
+invokeai/frontend/**/*.md text eol=lf
+invokeai/frontend/**/*.yaml text eol=lf
+invokeai/frontend/**/*.yml text eol=lf
tests/test_model_probe/stripped_models/** filter=lfs diff=lfs merge=lfs -text
tests/model_identification/stripped_models/** filter=lfs diff=lfs merge=lfs -text