settings.json 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  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. "node_modules": true,
  11. "src/sentry/locale": true,
  12. "src/sentry/static/sentry/dist/": true,
  13. "model-manifest.json": 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": "biomejs.biome",
  23. "editor.codeActionsOnSave": {
  24. "quickfix.biome": true
  25. }
  26. },
  27. "[typescript]": {
  28. "editor.formatOnSave": true,
  29. "editor.tabSize": 2,
  30. "editor.defaultFormatter": "biomejs.biome",
  31. "editor.codeActionsOnSave": {
  32. "quickfix.biome": true
  33. }
  34. },
  35. // Exclude Specific Files from Auto-Imports
  36. "typescript.preferences.autoImportFileExcludePatterns": [
  37. "**/config/chartcuterie/*",
  38. "**/node_modules/@testing-library/*",
  39. "**/node_modules/@tanstack/react-query"
  40. ],
  41. // Avoid relative imports
  42. "typescript.preferences.importModuleSpecifier": "non-relative",
  43. "[typescriptreact]": {
  44. "editor.formatOnSave": true,
  45. "editor.tabSize": 2,
  46. "editor.defaultFormatter": "biomejs.biome",
  47. "editor.codeActionsOnSave": {
  48. "quickfix.biome": true
  49. }
  50. },
  51. "[javascriptreact]": {
  52. "editor.formatOnSave": true,
  53. "editor.tabSize": 2,
  54. "editor.defaultFormatter": "biomejs.biome",
  55. "editor.codeActionsOnSave": {
  56. "quickfix.biome": true
  57. }
  58. },
  59. "[less]": {
  60. "editor.formatOnSave": true,
  61. "editor.codeActionsOnSave": {
  62. "source.fixAll.eslint": "explicit"
  63. }
  64. },
  65. "[python]": {
  66. "editor.formatOnSave": true,
  67. "editor.codeActionsOnSave": {
  68. "source.organizeImports": "explicit"
  69. },
  70. "editor.defaultFormatter": "ms-python.black-formatter"
  71. },
  72. "[html]": {
  73. "editor.formatOnSave": false
  74. },
  75. "[json]": {
  76. "editor.defaultFormatter": "biomejs.biome",
  77. "editor.codeActionsOnSave": {
  78. "quickfix.biome": true
  79. }
  80. },
  81. "[markdown]": {
  82. "editor.codeActionsOnSave": {
  83. "source.fixAll.eslint": "explicit"
  84. }
  85. },
  86. "editor.tabSize": 4,
  87. "python.testing.pytestEnabled": true,
  88. "python.testing.unittestEnabled": false,
  89. "python.testing.pytestPath": "${workspaceFolder}/.venv/bin/pytest",
  90. "python.testing.pytestArgs": ["tests"]
  91. }