diff --git a/.editorconfig b/.editorconfig index cf640d5..3dce414 100644 --- a/.editorconfig +++ b/.editorconfig @@ -1,9 +1,9 @@ -root = true - -[*] -charset = utf-8 -indent_style = space -indent_size = 2 -end_of_line = lf -insert_final_newline = true +root = true + +[*] +charset = utf-8 +indent_style = space +indent_size = 2 +end_of_line = lf +insert_final_newline = true trim_trailing_whitespace = true \ No newline at end of file diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9752e56 --- /dev/null +++ b/.gitattributes @@ -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