biome.json 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121
  1. {
  2. "$schema": "./node_modules/@biomejs/biome/configuration_schema.json",
  3. "files": {
  4. "includes": [
  5. "**",
  6. "!**/dist/**",
  7. "!**/node_modules/**",
  8. "!**/coverage/**",
  9. "!**/vite.config.ts.timestamp-*",
  10. "!**/vite.server.config.ts.timestamp-*",
  11. "!**/vite.client.config.ts.timestamp-*",
  12. "!**/.turbo/**",
  13. "!**/.vscode/**",
  14. "!**/turbo.json",
  15. "!**/.claude/**",
  16. "!**/.next/**",
  17. "!**/.terraform/**",
  18. "!bin/**",
  19. "!tsconfig.base.json",
  20. "!**/.devcontainer/**",
  21. "!**/.eslintrc.js",
  22. "!**/.stylelintrc.json",
  23. "!**/package.json",
  24. "!apps/slackbot-proxy/src/public/bootstrap/**",
  25. "!packages/editor/**",
  26. "!packages/pdf-converter-client/src/index.ts",
  27. "!apps/app/playwright/**",
  28. "!apps/app/public/**",
  29. "!apps/app/src/client/**",
  30. "!apps/app/src/components/**",
  31. "!apps/app/src/features/growi-plugin/**",
  32. "!apps/app/src/features/openai/**",
  33. "!apps/app/src/features/rate-limiter/**",
  34. "!apps/app/src/models/**",
  35. "!apps/app/src/pages/**",
  36. "!apps/app/src/server/**",
  37. "!apps/app/src/services/**",
  38. "!apps/app/src/stores/**",
  39. "!apps/app/src/styles/**",
  40. "!apps/app/test/integration/service/**",
  41. "!apps/app/test-with-vite/**",
  42. "!apps/app/tmp/**"
  43. ]
  44. },
  45. "formatter": {
  46. "enabled": true,
  47. "indentStyle": "space"
  48. },
  49. "assist": {
  50. "actions": {
  51. "source": {
  52. "organizeImports": {
  53. "level": "on",
  54. "options": {
  55. "groups": [
  56. [
  57. "react",
  58. "react/**"
  59. ],
  60. [
  61. "next",
  62. "next/**"
  63. ],
  64. [
  65. ":NODE:",
  66. ":PACKAGE:"
  67. ],
  68. ":BLANK_LINE:",
  69. [
  70. "@/**",
  71. "^/**"
  72. ],
  73. ":BLANK_LINE:",
  74. "~/**",
  75. ":BLANK_LINE:",
  76. [
  77. ":PATH:",
  78. "!**/*.css",
  79. "!**/*.scss"
  80. ],
  81. ":BLANK_LINE:",
  82. [
  83. "**/*.css",
  84. "**/*.scss"
  85. ]
  86. ]
  87. }
  88. }
  89. }
  90. }
  91. },
  92. "linter": {
  93. "enabled": true,
  94. "rules": {
  95. "recommended": true
  96. }
  97. },
  98. "javascript": {
  99. "formatter": {
  100. "quoteStyle": "single"
  101. },
  102. "parser": {
  103. "unsafeParameterDecoratorsEnabled": true
  104. }
  105. },
  106. "overrides": [
  107. {
  108. "includes": [
  109. "apps/pdf-converter/**",
  110. "./apps/slackbot-proxy/**"
  111. ],
  112. "linter": {
  113. "rules": {
  114. "style": {
  115. "useImportType": "off"
  116. }
  117. }
  118. }
  119. }
  120. ]
  121. }