mirror of
https://github.com/zen-browser/www.git
synced 2025-07-07 08:55:32 +02:00
feat(editorconfig): add editorconfig and enable with biome
This commit is contained in:
parent
2da95610ab
commit
375285feb6
2 changed files with 39 additions and 1 deletions
37
.editorconfig
Normal file
37
.editorconfig
Normal 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
|
|
@ -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": [
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue