Skip to content

Commit

Permalink
chore: add configs & formatter
Browse files Browse the repository at this point in the history
  • Loading branch information
xseman committed Jan 9, 2024
1 parent 70f4ca1 commit ef0aa2b
Show file tree
Hide file tree
Showing 5 changed files with 346 additions and 267 deletions.
14 changes: 14 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
root = true

[*]
charset = utf-8
end_of_line = lf
indent_style = tab
tab_width = 4
max_line_length = 100
insert_final_newline = true
trim_trailing_whitespace = true

[{*.yml,*.yaml}]
indent_style = space
indent_size = 4
9 changes: 9 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"editor.codeActionsOnSave": {
"source.organizeImports": "explicit"
},
"[typescript][javascript][markdown][json]": {
"editor.defaultFormatter": "dprint.dprint",
"editor.formatOnSave": true
}
}
12 changes: 12 additions & 0 deletions dprint.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"lineWidth": 100,
"useTabs": true,
"excludes": [
"**/node_modules",
"**/*-lock.json"
],
"plugins": [
"https://plugins.dprint.dev/typescript-0.88.7.wasm",
"https://plugins.dprint.dev/json-0.19.1.wasm"
]
}
Loading

0 comments on commit ef0aa2b

Please sign in to comment.