Add editor formatting config

This commit is contained in:
Sheldon Lee 2023-11-09 03:26:13 +08:00
parent 52b29911a0
commit a807c4bc13
3 changed files with 30 additions and 0 deletions

8
.editorconfig Normal file
View File

@ -0,0 +1,8 @@
root = true
[*]
end_of_line = lf
insert_final_newline = true
charset = utf-8
indent_style = space
indent_size = 2

16
.eslintrc.json Normal file
View File

@ -0,0 +1,16 @@
{
"root": true,
"parser": "@typescript-eslint/parser",
"env": {
"node": true
},
"plugins": [
"@typescript-eslint"
],
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended",
"plugin:prettier/recommended"
]
}

6
.prettierrc.json Normal file
View File

@ -0,0 +1,6 @@
{
"trailingComma": "es5",
"semi": true,
"singleQuote": true,
"tabWidth": 2
}