(internal): add better vscode settings

This commit is contained in:
Christian Bromann 2023-11-08 20:06:52 -08:00
parent db9f616134
commit c78ba4a677
No known key found for this signature in database
GPG key ID: 6D65B5474C4AF507
3 changed files with 94 additions and 0 deletions

18
.vscode/extensions.json vendored Normal file
View file

@ -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",
]
}

36
.vscode/launch.json vendored Normal file
View file

@ -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": ["<node_internals>/**"],
"cwd": "${workspaceRoot}",
"console": "integratedTerminal",
"runtimeExecutable": "npx",
"runtimeArgs": ["run-s", "test:eslint", "test:ejslint"]
}, {
"type": "node",
"request": "launch",
"name": "Run Unit Tests",
"skipFiles": ["<node_internals>/**"],
"cwd": "${workspaceRoot}",
"console": "integratedTerminal",
"runtimeExecutable": "npm",
"runtimeArgs": ["run-script", "test:unit:run"]
}, {
"type": "node",
"request": "launch",
"name": "Run Smoke Tests",
"skipFiles": ["<node_internals>/**"],
"cwd": "${workspaceRoot}",
"console": "integratedTerminal",
"runtimeExecutable": "npm",
"runtimeArgs": ["run-script", "test:smoke"]
}
]
}

40
.vscode/settings.json vendored Normal file
View file

@ -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"
}