From c78ba4a677229c1e40e6245e847346b5097a9259 Mon Sep 17 00:00:00 2001 From: Christian Bromann Date: Wed, 8 Nov 2023 20:06:52 -0800 Subject: [PATCH] (internal): add better vscode settings --- .vscode/extensions.json | 18 ++++++++++++++++++ .vscode/launch.json | 36 ++++++++++++++++++++++++++++++++++++ .vscode/settings.json | 40 ++++++++++++++++++++++++++++++++++++++++ 3 files changed, 94 insertions(+) create mode 100644 .vscode/extensions.json create mode 100644 .vscode/launch.json create mode 100644 .vscode/settings.json diff --git a/.vscode/extensions.json b/.vscode/extensions.json new file mode 100644 index 000000000..9a4bdb4b0 --- /dev/null +++ b/.vscode/extensions.json @@ -0,0 +1,18 @@ +{ + "recommendations": [ + // Linting / Formatting + "dbaeumer.vscode-eslint", + "usernamehw.errorlens", + "EditorConfig.EditorConfig", + + // TypeScript + "ms-vscode.vscode-typescript-next", + "yoavbls.pretty-ts-errors", + + // PR management / Reviewing + "github.vscode-pull-request-github", + + // Showing todo comments + "gruntfuggly.todo-tree", + ] +} diff --git a/.vscode/launch.json b/.vscode/launch.json new file mode 100644 index 000000000..7358e02ed --- /dev/null +++ b/.vscode/launch.json @@ -0,0 +1,36 @@ +{ + // Use IntelliSense to learn about possible attributes. + // Hover to view descriptions of existing attributes. + // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 + "version": "0.2.0", + "configurations": [ + { + "type": "node", + "request": "launch", + "name": "Run Linter Tests", + "skipFiles": ["/**"], + "cwd": "${workspaceRoot}", + "console": "integratedTerminal", + "runtimeExecutable": "npx", + "runtimeArgs": ["run-s", "test:eslint", "test:ejslint"] + }, { + "type": "node", + "request": "launch", + "name": "Run Unit Tests", + "skipFiles": ["/**"], + "cwd": "${workspaceRoot}", + "console": "integratedTerminal", + "runtimeExecutable": "npm", + "runtimeArgs": ["run-script", "test:unit:run"] + }, { + "type": "node", + "request": "launch", + "name": "Run Smoke Tests", + "skipFiles": ["/**"], + "cwd": "${workspaceRoot}", + "console": "integratedTerminal", + "runtimeExecutable": "npm", + "runtimeArgs": ["run-script", "test:smoke"] + } + ] +} diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 000000000..a158462c1 --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,40 @@ +{ + // Linting using ESLint. + "eslint.validate": [ + "javascript", + "typescript", + ], + // Debugging. + "debug.javascript.unmapMissingSources": true, + "files.exclude": { + "*[!test]**/node_modules": true + }, + // Ensure enough terminal history is preserved when running tests. + "terminal.integrated.scrollback": 10000, + // Configure todo-tree to exclude node_modules, dist, and compiled. + "todo-tree.filtering.excludeGlobs": [ + "**/node_modules", + "**/dist", + "**/compiled" + ], + // Match TODO-APP in addition to other TODOs. + "todo-tree.general.tags": [ + "BUG", + "HACK", + "FIXME", + "TODO", + "XXX", + "[ ]", + "[x]", + "TODO-APP" + ], + // Disable TypeScript surveys. + "typescript.surveys.enabled": false, + "grammarly.selectors": [ + { + "language": "markdown", + "scheme": "file" + } + ], + "typescript.tsdk": "node_modules/typescript/lib" +}