diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 00000000..65f8370a --- /dev/null +++ b/.editorconfig @@ -0,0 +1,14 @@ +root = true + +[*] +end_of_line = lf +charset = utf-8 +insert_final_newline = true +trim_trailing_whitespace = true + +[*.{ts,tsx,js,json}] +indent_style = tab +indent_size = 4 + +[*.md] +trim_trailing_whitespace = false diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 00000000..becb667a --- /dev/null +++ b/.gitattributes @@ -0,0 +1,28 @@ +# Set default behavior to automatically normalize line endings +* text=auto eol=lf + +# Explicitly declare text files +*.ts text eol=lf +*.tsx text eol=lf +*.js text eol=lf +*.json text eol=lf +*.md text eol=lf +*.css text eol=lf +*.html text eol=lf +*.yml text eol=lf +*.yaml text eol=lf +*.sql text eol=lf +*.sh text eol=lf +*.toml text eol=lf + +# Binary files +*.png binary +*.jpg binary +*.jpeg binary +*.gif binary +*.ico binary +*.webp binary +*.woff binary +*.woff2 binary +*.ttf binary +*.eot binary diff --git a/biome.json b/biome.json index 928a49a7..602097c3 100644 --- a/biome.json +++ b/biome.json @@ -13,7 +13,8 @@ "formatter": { "enabled": true, "indentStyle": "tab", - "lineWidth": 120 + "lineWidth": 120, + "lineEnding": "lf" }, "linter": { "enabled": true,