settings.json 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124
  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]": {
  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. "[typescript]": {
  29. "editor.formatOnSave": true,
  30. "editor.tabSize": 2,
  31. "editor.defaultFormatter": "esbenp.prettier-vscode",
  32. "editor.codeActionsOnSave": {
  33. "quickfix.biome": "explicit",
  34. "source.fixAll.eslint": "explicit"
  35. }
  36. },
  37. "[typescriptreact]": {
  38. "editor.formatOnSave": true,
  39. "editor.tabSize": 2,
  40. "editor.defaultFormatter": "esbenp.prettier-vscode",
  41. "editor.codeActionsOnSave": {
  42. "quickfix.biome": "explicit",
  43. "source.fixAll.eslint": "explicit"
  44. }
  45. },
  46. "[javascriptreact]": {
  47. "editor.formatOnSave": true,
  48. "editor.tabSize": 2,
  49. "editor.defaultFormatter": "esbenp.prettier-vscode",
  50. "editor.codeActionsOnSave": {
  51. "quickfix.biome": "explicit",
  52. "source.fixAll.eslint": "explicit"
  53. }
  54. },
  55. "[python]": {
  56. "editor.insertSpaces": true,
  57. "editor.detectIndentation": false,
  58. "editor.tabSize": 4,
  59. "editor.formatOnSave": true,
  60. "editor.codeActionsOnSave": {
  61. "source.organizeImports": "explicit"
  62. },
  63. "editor.defaultFormatter": "ms-python.black-formatter"
  64. },
  65. // auto-formatting breaks Django templates
  66. // see https://github.com/Microsoft/vscode/issues/44342
  67. "[html]": {
  68. "editor.insertSpaces": true,
  69. "editor.detectIndentation": false,
  70. "editor.tabSize": 2,
  71. "editor.formatOnSave": false
  72. },
  73. "[less]": {
  74. "editor.formatOnSave": true,
  75. "editor.codeActionsOnSave": {
  76. "source.fixAll.eslint": "explicit"
  77. }
  78. },
  79. "[json]": {
  80. "editor.insertSpaces": true,
  81. "editor.detectIndentation": false,
  82. "editor.tabSize": 2,
  83. "editor.formatOnSave": true,
  84. "editor.defaultFormatter": "esbenp.prettier-vscode",
  85. "editor.codeActionsOnSave": {
  86. "quickfix.biome": "explicit"
  87. }
  88. },
  89. "[markdown]": {
  90. "editor.codeActionsOnSave": {
  91. "source.fixAll.eslint": "explicit"
  92. }
  93. },
  94. "[dockerfile]": {
  95. "editor.insertSpaces": true,
  96. "editor.detectIndentation": false,
  97. "editor.tabSize": 4,
  98. "editor.formatOnSave": true
  99. },
  100. // Exclude Specific Files from Auto-Imports
  101. "typescript.preferences.autoImportFileExcludePatterns": [
  102. "**/config/chartcuterie/*",
  103. "**/node_modules/@testing-library/*",
  104. "**/node_modules/@tanstack/react-query"
  105. ],
  106. // Avoid relative imports
  107. "typescript.preferences.importModuleSpecifier": "non-relative",
  108. "editor.tabSize": 4,
  109. "python.testing.pytestEnabled": true,
  110. "python.testing.unittestEnabled": false,
  111. "python.testing.pytestPath": "${workspaceFolder}/.venv/bin/pytest",
  112. "python.testing.pytestArgs": ["tests"]
  113. }