54 lines
1.3 KiB
JSON
54 lines
1.3 KiB
JSON
{
|
|
// Formatting using Prettier by default for all languages
|
|
"editor.defaultFormatter": "esbenp.prettier-vscode",
|
|
// Formatting using Prettier for JavaScript, overrides VSCode default.
|
|
"[javascript]": {
|
|
"editor.defaultFormatter": "esbenp.prettier-vscode"
|
|
},
|
|
// Formatting using Rust-Analyzer for Rust.
|
|
"[rust]": {
|
|
"editor.defaultFormatter": "rust-lang.rust-analyzer"
|
|
},
|
|
// Linting using ESLint.
|
|
"eslint.validate": [
|
|
"javascript",
|
|
"javascriptreact",
|
|
"typescript",
|
|
"typescriptreact"
|
|
],
|
|
// Disable Jest autoRun as otherwise it will start running all tests the first time.
|
|
"jest.autoRun": "off",
|
|
|
|
// Debugging.
|
|
"debug.javascript.unmapMissingSources": true,
|
|
|
|
"files.exclude": {
|
|
"**/node_modules": false,
|
|
"node_modules": true,
|
|
"*[!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
|
|
}
|