settings.json 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  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/@storybook/theming/*",
  36. "**/node_modules/@storybook/addons/*",
  37. "**/node_modules/@testing-library/*"
  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. }
  57. },
  58. "[html]": {
  59. "editor.formatOnSave": false
  60. },
  61. "python.linting.pylintEnabled": false,
  62. "python.linting.flake8Enabled": true,
  63. // test discovery is sluggish and the UI around running
  64. // tests is often in your way and misclicked
  65. "python.testing.pytestEnabled": true,
  66. "python.testing.unittestEnabled": false,
  67. "python.testing.nosetestsEnabled": false,
  68. "editor.tabSize": 4,
  69. "restructuredtext.confPath": "",
  70. "python.linting.enabled": true,
  71. "python.linting.flake8Path": "${workspaceFolder}/.venv/bin/flake8",
  72. "python.linting.pycodestylePath": "${workspaceFolder}/.venv/bin/pep8",
  73. "python.testing.pytestPath": "${workspaceFolder}/.venv/bin/pytest",
  74. "python.formatting.blackPath": "${workspaceFolder}/.venv/bin/black",
  75. "python.formatting.provider": "black",
  76. "python.testing.pytestArgs": [
  77. "tests"
  78. ],
  79. "restructuredtext.preview.docutils.disabled": true
  80. }