settings.json 2.6 KB

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