From 375285feb63b75c213080f634261ac5ae35e15a3 Mon Sep 17 00:00:00 2001 From: Shintaro Jokagi Date: Thu, 15 May 2025 16:11:03 +1200 Subject: [PATCH] feat(editorconfig): add editorconfig and enable with biome --- .editorconfig | 37 +++++++++++++++++++++++++++++++++++++ biome.json | 3 ++- 2 files changed, 39 insertions(+), 1 deletion(-) create mode 100644 .editorconfig 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": [