feat(editorconfig): add editorconfig and enable with biome

This commit is contained in:
Shintaro Jokagi 2025-05-15 16:11:03 +12:00
parent 2da95610ab
commit 375285feb6
No known key found for this signature in database
GPG key ID: 0DDF8FA44C9A0DA8
2 changed files with 39 additions and 1 deletions

37
.editorconfig Normal file
View file

@ -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

View file

@ -16,7 +16,8 @@
"enabled": true, "enabled": true,
"indentStyle": "space", "indentStyle": "space",
"indentWidth": 2, "indentWidth": 2,
"lineWidth": 100 "lineWidth": 100,
"useEditorconfig": true
}, },
"files": { "files": {
"ignore": [ "ignore": [