settings.json 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  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. "**/node_modules/@testing-library/*",
  36. "**/node_modules/@tanstack/react-query"
  37. ],
  38. // Avoid relative imports
  39. "typescript.preferences.importModuleSpecifier": "non-relative",
  40. "[typescriptreact]": {
  41. "editor.formatOnSave": true,
  42. "editor.tabSize": 2
  43. },
  44. "[javascriptreact]": {
  45. "editor.formatOnSave": true,
  46. "editor.tabSize": 2
  47. },
  48. "[less]": {
  49. "editor.formatOnSave": true
  50. },
  51. "[python]": {
  52. "editor.formatOnSave": true,
  53. "editor.codeActionsOnSave": {
  54. "source.organizeImports": true
  55. }
  56. },
  57. "[html]": {
  58. "editor.formatOnSave": false
  59. },
  60. "python.linting.pylintEnabled": false,
  61. "python.linting.flake8Enabled": true,
  62. // test discovery is sluggish and the UI around running
  63. // tests is often in your way and misclicked
  64. "python.testing.pytestEnabled": true,
  65. "python.testing.unittestEnabled": false,
  66. "python.testing.nosetestsEnabled": false,
  67. "editor.tabSize": 4,
  68. "restructuredtext.confPath": "",
  69. "python.linting.enabled": true,
  70. "python.linting.flake8Path": "${workspaceFolder}/.venv/bin/flake8",
  71. "python.linting.pycodestylePath": "${workspaceFolder}/.venv/bin/pep8",
  72. "python.testing.pytestPath": "${workspaceFolder}/.venv/bin/pytest",
  73. "python.formatting.blackPath": "${workspaceFolder}/.venv/bin/black",
  74. "python.formatting.provider": "black",
  75. "python.testing.pytestArgs": ["tests"]
  76. }