biome.json 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146
  1. {
  2. "$schema": "./node_modules/@biomejs/biome/configuration_schema.json",
  3. "files": {
  4. "includes": [
  5. "**",
  6. "!**/dist",
  7. "!**/node_modules",
  8. "!**/.pnpm-store",
  9. "!**/coverage",
  10. "!**/vite.config.ts.timestamp-*",
  11. "!**/vite.server.config.ts.timestamp-*",
  12. "!**/vite.client.config.ts.timestamp-*",
  13. "!**/.turbo",
  14. "!**/.vscode",
  15. "!**/turbo.json",
  16. "!**/.claude",
  17. "!**/.next",
  18. "!**/.terraform",
  19. "!bin",
  20. "!tsconfig.base.json",
  21. "!**/.devcontainer",
  22. "!**/.eslintrc.js",
  23. "!**/.stylelintrc.json",
  24. "!**/package.json",
  25. "!apps/app/src/styles/prebuilt",
  26. "!apps/app/tmp",
  27. "!apps/slackbot-proxy/src/public/bootstrap",
  28. "!packages/pdf-converter-client/src/index.ts",
  29. "!packages/pdf-converter-client/specs",
  30. "!apps/app/playwright",
  31. "!apps/app/src/client",
  32. "!apps/app/src/components",
  33. "!apps/app/src/features/openai",
  34. "!apps/app/src/pages",
  35. "!apps/app/src/server",
  36. "!apps/app/src/styles",
  37. "!apps/app/test-with-vite",
  38. "!apps/app/tmp"
  39. ]
  40. },
  41. "formatter": {
  42. "enabled": true,
  43. "indentStyle": "space"
  44. },
  45. "assist": {
  46. "actions": {
  47. "source": {
  48. "organizeImports": {
  49. "level": "on",
  50. "options": {
  51. "groups": [
  52. ["react", "react/**"],
  53. ["next", "next/**"],
  54. [":NODE:", ":PACKAGE:"],
  55. ":BLANK_LINE:",
  56. ["@/**", "^/**"],
  57. ":BLANK_LINE:",
  58. "~/**",
  59. ":BLANK_LINE:",
  60. [":PATH:", "!**/*.css", "!**/*.scss"],
  61. ":BLANK_LINE:",
  62. ["**/*.css", "**/*.scss"]
  63. ]
  64. }
  65. }
  66. }
  67. }
  68. },
  69. "linter": {
  70. "enabled": true,
  71. "rules": {
  72. "recommended": true,
  73. "correctness": {
  74. "useUniqueElementIds": "warn"
  75. }
  76. }
  77. },
  78. "javascript": {
  79. "formatter": {
  80. "quoteStyle": "single"
  81. },
  82. "parser": {
  83. "unsafeParameterDecoratorsEnabled": true
  84. }
  85. },
  86. "overrides": [
  87. {
  88. "includes": ["apps/pdf-converter/**", "./apps/slackbot-proxy/**"],
  89. "linter": {
  90. "rules": {
  91. "style": {
  92. "useImportType": "off"
  93. }
  94. }
  95. }
  96. },
  97. {
  98. "includes": ["apps/app/**"],
  99. "linter": {
  100. "rules": {
  101. "style": {
  102. "noRestrictedImports": {
  103. "level": "error",
  104. "options": {
  105. "paths": {
  106. "axios": "Please use src/utils/axios instead."
  107. }
  108. }
  109. }
  110. }
  111. }
  112. }
  113. },
  114. {
  115. "includes": [
  116. "apps/app/src/stores-universal/**",
  117. "apps/app/src/utils/**",
  118. "apps/app/src/models/**",
  119. "apps/app/src/services/**",
  120. "apps/app/src/pages/**",
  121. "apps/app/src/server/**",
  122. "apps/app/src/components/**"
  123. ],
  124. "linter": {
  125. "rules": {
  126. "style": {
  127. "noRestrictedImports": {
  128. "level": "error",
  129. "options": {
  130. "paths": {
  131. "axios": "Please use src/utils/axios instead."
  132. },
  133. "patterns": [
  134. {
  135. "group": ["~/client/*", "client/*"],
  136. "message": "Importing from client/ directories is restricted."
  137. }
  138. ]
  139. }
  140. }
  141. }
  142. }
  143. }
  144. }
  145. ]
  146. }