settings.json 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  1. {
  2. // Formatting using Prettier by default for all languages
  3. "editor.defaultFormatter": "esbenp.prettier-vscode",
  4. // Formatting using Prettier for JavaScript, overrides VSCode default.
  5. "[javascript]": {
  6. "editor.defaultFormatter": "esbenp.prettier-vscode"
  7. },
  8. // Formatting using Rust-Analyzer for Rust.
  9. "[rust]": {
  10. "editor.defaultFormatter": "rust-lang.rust-analyzer"
  11. },
  12. // Linting using ESLint.
  13. "eslint.validate": [
  14. "javascript",
  15. "javascriptreact",
  16. "typescript",
  17. "typescriptreact"
  18. ],
  19. // Disable Jest autoRun as otherwise it will start running all tests the first time.
  20. "jest.autoRun": "off",
  21. // Debugging.
  22. "debug.javascript.unmapMissingSources": true,
  23. "files.exclude": {
  24. "*[!test]**/node_modules": true
  25. },
  26. // Ensure enough terminal history is preserved when running tests.
  27. "terminal.integrated.scrollback": 10000,
  28. // Configure todo-tree to exclude node_modules, dist, and compiled.
  29. "todo-tree.filtering.excludeGlobs": [
  30. "**/node_modules",
  31. "**/dist",
  32. "**/compiled"
  33. ],
  34. // Match TODO-APP in addition to other TODOs.
  35. "todo-tree.general.tags": [
  36. "BUG",
  37. "HACK",
  38. "FIXME",
  39. "TODO",
  40. "XXX",
  41. "[ ]",
  42. "[x]",
  43. "TODO-APP"
  44. ],
  45. // Disable TypeScript surveys.
  46. "typescript.surveys.enabled": false,
  47. // Enable file nesting for unit test files.
  48. "explorer.fileNesting.enabled": true,
  49. "explorer.fileNesting.patterns": {
  50. "*.ts": "$(capture).test.ts, $(capture).test.tsx",
  51. "*.tsx": "$(capture).test.ts, $(capture).test.tsx"
  52. },
  53. // Compile rust-analyzer in a separate directory to avoid conflicts with the main project.
  54. "rust-analyzer.checkOnSave.extraEnv": {
  55. "CARGO_TARGET_DIR": "target/rust-analyzer"
  56. },
  57. "rust-analyzer.server.extraEnv": {
  58. "CARGO_TARGET_DIR": "target/rust-analyzer",
  59. "RUST_BACKTRACE": "0"
  60. },
  61. "rust-analyzer.cargo.extraEnv": {
  62. "CARGO_TARGET_DIR": "target/rust_analyzer"
  63. },
  64. "cSpell.words": [
  65. "Entrypoints",
  66. "napi",
  67. "nextjs",
  68. "opentelemetry",
  69. "prerendered",
  70. "Threadsafe",
  71. "Turbopack",
  72. "zipkin"
  73. ],
  74. "grammarly.selectors": [
  75. {
  76. "language": "markdown",
  77. "scheme": "file"
  78. }
  79. ],
  80. "typescript.tsdk": "node_modules/typescript/lib",
  81. "gitlens.advanced.blame.customArguments": [
  82. "--ignore-revs-file",
  83. "${workspaceRoot}/.git-blame-ignore-revs"
  84. ]
  85. }