2019-11-11 04:24:53 +01:00
|
|
|
{
|
2022-12-12 15:10:54 +01:00
|
|
|
// 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.
|
2019-11-11 04:24:53 +01:00
|
|
|
"eslint.validate": [
|
|
|
|
"javascript",
|
|
|
|
"javascriptreact",
|
2022-12-12 15:10:54 +01:00
|
|
|
"typescript",
|
|
|
|
"typescriptreact"
|
2020-12-29 22:21:35 +01:00
|
|
|
],
|
2022-12-12 15:10:54 +01:00
|
|
|
// Disable Jest autoRun as otherwise it will start running all tests the first time.
|
2022-12-05 13:11:43 +01:00
|
|
|
"jest.autoRun": "off",
|
2022-12-12 15:10:54 +01:00
|
|
|
|
|
|
|
// Debugging.
|
|
|
|
"debug.javascript.unmapMissingSources": true,
|
|
|
|
|
2022-09-27 17:21:30 +02:00
|
|
|
"files.exclude": {
|
|
|
|
"**/node_modules": false,
|
|
|
|
"node_modules": true,
|
|
|
|
"*[!test]**/node_modules": true
|
2022-12-12 15:10:54 +01:00
|
|
|
},
|
|
|
|
|
|
|
|
// 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.
|
2023-01-28 14:56:56 +01:00
|
|
|
"typescript.surveys.enabled": false,
|
|
|
|
|
|
|
|
// Enable file nesting for unit test files.
|
|
|
|
"explorer.fileNesting.enabled": true,
|
|
|
|
"explorer.fileNesting.patterns": {
|
|
|
|
"*.ts": "$(capture).test.ts, $(capture).test.tsx",
|
|
|
|
"*.tsx": "$(capture).test.ts, $(capture).test.tsx"
|
|
|
|
}
|
2019-11-11 04:24:53 +01:00
|
|
|
}
|