diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 0000000..1014ba7 --- /dev/null +++ b/.editorconfig @@ -0,0 +1,12 @@ +root = true + +[*] +charset = utf-8 +end_of_line = lf +insert_final_newline = true +indent_style = space +indent_size = 2 +trim_trailing_whitespace = true + +[*.md] +trim_trailing_whitespace = false diff --git a/.gitignore b/.gitignore index 328c1fb..3b06f1f 100644 --- a/.gitignore +++ b/.gitignore @@ -53,7 +53,10 @@ jspm_packages/ .env.production.local # IDE files -.vscode/ +.vscode/* +!.vscode/settings.json +!.vscode/extensions.json +!.vscode/tasks.json .idea/ *.swp *.swo diff --git a/.vscode/extensions.json b/.vscode/extensions.json new file mode 100644 index 0000000..05bbf7f --- /dev/null +++ b/.vscode/extensions.json @@ -0,0 +1,5 @@ +{ + "recommendations": [ + "oven.bun-vscode" + ] +} diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 0000000..c3f7f19 --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,9 @@ +{ + "files.eol": "\n", + "files.insertFinalNewline": true, + "files.trimTrailingWhitespace": true, + "editor.detectIndentation": false, + "editor.tabSize": 2, + "editor.formatOnSave": true, + "typescript.tsdk": "node_modules/typescript/lib" +} diff --git a/.vscode/tasks.json b/.vscode/tasks.json new file mode 100644 index 0000000..af5c946 --- /dev/null +++ b/.vscode/tasks.json @@ -0,0 +1,42 @@ +{ + "version": "2.0.0", + "tasks": [ + { + "label": "bun: install", + "type": "shell", + "command": "bun install", + "problemMatcher": [] + }, + { + "label": "bun: lint", + "type": "shell", + "command": "bun run lint", + "group": "test", + "problemMatcher": [] + }, + { + "label": "bun: typecheck", + "type": "shell", + "command": "bun run typecheck", + "group": "test", + "problemMatcher": [] + }, + { + "label": "bun: test", + "type": "shell", + "command": "bun run test", + "group": "test", + "problemMatcher": [] + }, + { + "label": "bun: build", + "type": "shell", + "command": "bun run build", + "group": { + "kind": "build", + "isDefault": true + }, + "problemMatcher": [] + } + ] +}