Add editor configuration files for 4-space indentation

Co-authored-by: leinelissen <10154841+leinelissen@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot]
2026-02-08 13:48:38 +00:00
co-authored by leinelissen
parent 1c38ef6711
commit 7c13b205b5
3 changed files with 39 additions and 0 deletions
+25
View File
@@ -0,0 +1,25 @@
# EditorConfig is awesome: https://EditorConfig.org
# top-most EditorConfig file
root = true
# Unix-style newlines with a newline ending every file
[*]
end_of_line = lf
insert_final_newline = true
charset = utf-8
trim_trailing_whitespace = true
# TypeScript, JavaScript, JSON, and JSX files
[*.{ts,tsx,js,jsx,json}]
indent_style = space
indent_size = 4
# YAML files
[*.{yml,yaml}]
indent_style = space
indent_size = 2
# Markdown files
[*.md]
trim_trailing_whitespace = false
+5
View File
@@ -1,4 +1,9 @@
module.exports = {
root: true,
extends: '@react-native',
rules: {
// Enforce 4-space indentation
'indent': ['error', 4, { 'SwitchCase': 1 }],
'@typescript-eslint/indent': ['error', 4, { 'SwitchCase': 1 }],
},
};
+9
View File
@@ -0,0 +1,9 @@
{
"tabWidth": 4,
"useTabs": false,
"semi": true,
"singleQuote": true,
"trailingComma": "es5",
"printWidth": 100,
"arrowParens": "always"
}