settings.json 2.3 KB

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