biome.json 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  1. {
  2. "$schema": "./node_modules/@biomejs/biome/configuration_schema.json",
  3. "vcs": {
  4. "enabled": true,
  5. "clientKind": "git",
  6. "useIgnoreFile": true,
  7. "defaultBranch": "master"
  8. },
  9. "organizeImports": {
  10. "enabled": false
  11. },
  12. "linter": {
  13. "enabled": true,
  14. "rules": {
  15. "recommended": false,
  16. "complexity": {
  17. "useFlatMap": "error"
  18. },
  19. "nursery": {
  20. "noDuplicateJsonKeys": "error",
  21. "noNodejsModules": "error",
  22. "useExportType": "error",
  23. "useImportType": "error"
  24. },
  25. "suspicious": {
  26. "useIsArray": "error"
  27. }
  28. }
  29. },
  30. "files": {
  31. "ignoreUnknown": true,
  32. "ignore": [
  33. "**/*/trace.json",
  34. "static/app/data/world.json",
  35. "**/*.sourcemap.js",
  36. "**/*.min.js",
  37. "fixtures"
  38. ]
  39. },
  40. "formatter": {
  41. "enabled": true,
  42. "formatWithErrors": true,
  43. "indentStyle": "space",
  44. "indentWidth": 2,
  45. "lineEnding": "lf",
  46. "ignore": ["tests/**/*.json"]
  47. },
  48. "javascript": {
  49. "formatter": {
  50. "enabled": true,
  51. "lineWidth": 90,
  52. "quoteStyle": "single",
  53. "jsxQuoteStyle": "double",
  54. "quoteProperties": "asNeeded",
  55. "trailingComma": "es5",
  56. "semicolons": "always",
  57. "arrowParentheses": "asNeeded",
  58. "bracketSpacing": false,
  59. "bracketSameLine": false
  60. }
  61. },
  62. "json": {
  63. "formatter": {
  64. "enabled": true
  65. },
  66. "parser": {
  67. "allowComments": true,
  68. "allowTrailingCommas": true
  69. }
  70. },
  71. "overrides": [
  72. {
  73. "include": [
  74. "api-docs/*.ts",
  75. "build-utils/*.ts",
  76. "config/webpack.chartcuterie.config.ts",
  77. "scripts",
  78. "tests/js/sentry-test/loadFixtures.ts",
  79. "tests/js/jest-pegjs-transform.js",
  80. "tests/js/setup.ts",
  81. "tests/js/test-balancer/index.js",
  82. "*.config.ts"
  83. ],
  84. "linter": {
  85. "rules": {
  86. "nursery": {
  87. "noNodejsModules": "off"
  88. }
  89. }
  90. }
  91. }
  92. ]
  93. }