Форсировать LF через .gitattributes: чинит format:check на Windows-раннере CI

This commit is contained in:
2026-09-03 03:59:06 +03:00
parent 73287fb356
commit ef327aa748
2 changed files with 17 additions and 8 deletions
+8 -8
View File
@@ -1,9 +1,9 @@
root = true root = true
[*] [*]
charset = utf-8 charset = utf-8
indent_style = space indent_style = space
indent_size = 2 indent_size = 2
end_of_line = lf end_of_line = lf
insert_final_newline = true insert_final_newline = true
trim_trailing_whitespace = true trim_trailing_whitespace = true
+9
View File
@@ -0,0 +1,9 @@
# Всегда LF в рабочей копии, независимо от ОС — иначе Windows-раннер CI
# чекаутит файлы в CRLF (core.autocrlf по умолчанию), а Prettier и
# .editorconfig ожидают LF, и format:check падает на каждом файле.
* text=auto eol=lf
# Бинарники — без какой-либо конвертации построчных окончаний.
*.png binary
*.icns binary
*.ico binary