Skip to content

Commit ef0aa2b

Browse files
committed
chore: add configs & formatter
1 parent 70f4ca1 commit ef0aa2b

File tree

5 files changed

+346
-267
lines changed

5 files changed

+346
-267
lines changed

.editorconfig

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
root = true
2+
3+
[*]
4+
charset = utf-8
5+
end_of_line = lf
6+
indent_style = tab
7+
tab_width = 4
8+
max_line_length = 100
9+
insert_final_newline = true
10+
trim_trailing_whitespace = true
11+
12+
[{*.yml,*.yaml}]
13+
indent_style = space
14+
indent_size = 4

.vscode/settings.json

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"editor.codeActionsOnSave": {
3+
"source.organizeImports": "explicit"
4+
},
5+
"[typescript][javascript][markdown][json]": {
6+
"editor.defaultFormatter": "dprint.dprint",
7+
"editor.formatOnSave": true
8+
}
9+
}

dprint.json

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"lineWidth": 100,
3+
"useTabs": true,
4+
"excludes": [
5+
"**/node_modules",
6+
"**/*-lock.json"
7+
],
8+
"plugins": [
9+
"https://plugins.dprint.dev/typescript-0.88.7.wasm",
10+
"https://plugins.dprint.dev/json-0.19.1.wasm"
11+
]
12+
}

0 commit comments

Comments
 (0)