settings.json 2.1 KB

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