settings.json 1.7 KB

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