settings.json 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  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. "files.associations": {
  20. "*.jsx": "javascriptreact"
  21. },
  22. "editor.codeActionsOnSave": {
  23. "source.fixAll.eslint": true
  24. },
  25. "[javascript]": {
  26. "editor.formatOnSave": true,
  27. "editor.tabSize": 2
  28. },
  29. "[typescript]": {
  30. "editor.formatOnSave": true,
  31. "editor.tabSize": 2
  32. },
  33. // Exclude Specific Files from Auto-Imports
  34. "typescript.preferences.autoImportFileExcludePatterns": [
  35. "**/config/chartcuterie/*",
  36. "**/node_modules/@testing-library/*",
  37. "**/node_modules/@tanstack/react-query"
  38. ],
  39. // Avoid relative imports
  40. "typescript.preferences.importModuleSpecifier": "non-relative",
  41. "[typescriptreact]": {
  42. "editor.formatOnSave": true,
  43. "editor.tabSize": 2
  44. },
  45. "[javascriptreact]": {
  46. "editor.formatOnSave": true,
  47. "editor.tabSize": 2
  48. },
  49. "[less]": {
  50. "editor.formatOnSave": true
  51. },
  52. "[python]": {
  53. "editor.formatOnSave": true,
  54. "editor.codeActionsOnSave": {
  55. "source.organizeImports": true,
  56. "source.fixAll.eslint": false
  57. },
  58. "editor.defaultFormatter": "ms-python.black-formatter"
  59. },
  60. "[html]": {
  61. "editor.formatOnSave": false
  62. },
  63. "editor.tabSize": 4,
  64. "python.testing.pytestEnabled": true,
  65. "python.testing.unittestEnabled": false,
  66. "python.testing.pytestPath": "${workspaceFolder}/.venv/bin/pytest",
  67. "python.testing.pytestArgs": ["tests"]
  68. }