settings.json 2.3 KB

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