diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 0000000..ed6379f --- /dev/null +++ b/.editorconfig @@ -0,0 +1,37 @@ +# EditorConfig is awesome: https://EditorConfig.org + +# top-most EditorConfig file +root = true + +# Default settings for all files +[*] +charset = utf-8 +end_of_line = lf +insert_final_newline = true +trim_trailing_whitespace = true +indent_style = space +indent_size = 2 + +# Markdown files +[*.{md,markdown}] +trim_trailing_whitespace = false + +# YAML files +[*.{yml,yaml}] +indent_size = 2 + +# JSON files +[*.{json,jsonc}] +indent_size = 2 + +# TypeScript and JavaScript files +[*.{ts,tsx,js,jsx}] +indent_size = 2 + +# Astro files +[*.astro] +indent_size = 2 + +# Configuration files +[{*.config.js,*.config.ts}] +indent_size = 2 diff --git a/biome.json b/biome.json index b602b06..c6d90b1 100644 --- a/biome.json +++ b/biome.json @@ -16,7 +16,8 @@ "enabled": true, "indentStyle": "space", "indentWidth": 2, - "lineWidth": 100 + "lineWidth": 100, + "useEditorconfig": true }, "files": { "ignore": [