settings.json 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108
  1. {
  2. "files.exclude": {
  3. "*.egg-info": true,
  4. "*.log": false,
  5. "**/*.js.map": true,
  6. "**/*.min.js": true,
  7. "**/*.pyc": true,
  8. "build": true,
  9. "htmlcov": true,
  10. "model-manifest.json": true,
  11. "node_modules": true,
  12. "src/sentry/locale": true,
  13. "src/sentry/static/sentry/dist/": true
  14. },
  15. "search.followSymlinks": false,
  16. "files.trimTrailingWhitespace": true,
  17. "files.trimFinalNewlines": true,
  18. "files.insertFinalNewline": true,
  19. "[javascript][typescript][javascriptreact][typescriptreact]": {
  20. "editor.formatOnSave": true,
  21. "editor.tabSize": 2,
  22. "editor.defaultFormatter": "esbenp.prettier-vscode",
  23. "editor.codeActionsOnSave": {
  24. "quickfix.biome": "explicit",
  25. "source.fixAll.eslint": "explicit"
  26. }
  27. },
  28. "[python]": {
  29. "editor.insertSpaces": true,
  30. "editor.detectIndentation": false,
  31. "editor.tabSize": 4,
  32. "editor.formatOnSave": true,
  33. "editor.codeActionsOnSave": {
  34. "source.organizeImports": "explicit"
  35. },
  36. "editor.defaultFormatter": "ms-python.black-formatter"
  37. },
  38. // auto-formatting breaks Django templates
  39. // see https://github.com/Microsoft/vscode/issues/44342
  40. "[html]": {
  41. "editor.insertSpaces": true,
  42. "editor.detectIndentation": false,
  43. "editor.tabSize": 2,
  44. "editor.formatOnSave": false
  45. },
  46. "[less]": {
  47. "editor.formatOnSave": true,
  48. "editor.codeActionsOnSave": {
  49. "source.fixAll.eslint": "explicit"
  50. }
  51. },
  52. "[json]": {
  53. "editor.insertSpaces": true,
  54. "editor.detectIndentation": false,
  55. "editor.tabSize": 2,
  56. "editor.formatOnSave": true,
  57. "editor.defaultFormatter": "biomejs.biome",
  58. "editor.codeActionsOnSave": {
  59. "quickfix.biome": "explicit"
  60. }
  61. },
  62. "[yaml]": {
  63. "editor.insertSpaces": true,
  64. "editor.detectIndentation": false,
  65. "editor.tabSize": 2,
  66. "editor.formatOnSave": true,
  67. "editor.defaultFormatter": "esbenp.prettier-vscode",
  68. "editor.codeActionsOnSave": {
  69. "quickfix.biome": "explicit"
  70. }
  71. },
  72. "[markdown]": {
  73. "editor.codeActionsOnSave": {
  74. "source.fixAll.eslint": "explicit"
  75. }
  76. },
  77. "[dockerfile]": {
  78. "editor.insertSpaces": true,
  79. "editor.detectIndentation": false,
  80. "editor.tabSize": 4,
  81. "editor.formatOnSave": true
  82. },
  83. // Exclude Specific Files from Auto-Imports
  84. "typescript.preferences.autoImportFileExcludePatterns": [
  85. "**/config/chartcuterie/*",
  86. "**/node_modules/@testing-library/*",
  87. "**/node_modules/@tanstack/react-query",
  88. "**/react-dom/test-utils/*"
  89. ],
  90. // Avoid relative imports
  91. "typescript.preferences.importModuleSpecifier": "non-relative",
  92. "editor.tabSize": 4,
  93. "python.testing.pytestEnabled": true,
  94. "python.testing.unittestEnabled": false,
  95. "python.testing.pytestPath": "${workspaceFolder}/.venv/bin/pytest",
  96. "python.testing.pytestArgs": ["tests"],
  97. "python.analysis.autoImportCompletions": true,
  98. "prettier.configPath": "package.json"
  99. }