biome.json 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139
  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/pdf-converter/specs",
  28. "!apps/slackbot-proxy/src/public/bootstrap",
  29. "!packages/pdf-converter-client/src/index.ts",
  30. "!packages/pdf-converter-client/specs",
  31. "!apps/app/src/client/components"
  32. ]
  33. },
  34. "formatter": {
  35. "enabled": true,
  36. "indentStyle": "space"
  37. },
  38. "assist": {
  39. "actions": {
  40. "source": {
  41. "organizeImports": {
  42. "level": "on",
  43. "options": {
  44. "groups": [
  45. ["react", "react/**"],
  46. ["next", "next/**"],
  47. [":NODE:", ":PACKAGE:"],
  48. ":BLANK_LINE:",
  49. ["@/**", "^/**"],
  50. ":BLANK_LINE:",
  51. "~/**",
  52. ":BLANK_LINE:",
  53. [":PATH:", "!**/*.css", "!**/*.scss"],
  54. ":BLANK_LINE:",
  55. ["**/*.css", "**/*.scss"]
  56. ]
  57. }
  58. }
  59. }
  60. }
  61. },
  62. "linter": {
  63. "enabled": true,
  64. "rules": {
  65. "recommended": true,
  66. "correctness": {
  67. "useUniqueElementIds": "warn"
  68. }
  69. }
  70. },
  71. "javascript": {
  72. "formatter": {
  73. "quoteStyle": "single"
  74. },
  75. "parser": {
  76. "unsafeParameterDecoratorsEnabled": true
  77. }
  78. },
  79. "overrides": [
  80. {
  81. "includes": ["apps/pdf-converter/**", "./apps/slackbot-proxy/**"],
  82. "linter": {
  83. "rules": {
  84. "style": {
  85. "useImportType": "off"
  86. }
  87. }
  88. }
  89. },
  90. {
  91. "includes": ["apps/app/**"],
  92. "linter": {
  93. "rules": {
  94. "style": {
  95. "noRestrictedImports": {
  96. "level": "error",
  97. "options": {
  98. "paths": {
  99. "axios": "Please use src/utils/axios instead."
  100. }
  101. }
  102. }
  103. }
  104. }
  105. }
  106. },
  107. {
  108. "includes": [
  109. "apps/app/src/stores-universal/**",
  110. "apps/app/src/utils/**",
  111. "apps/app/src/models/**",
  112. "apps/app/src/services/**",
  113. "apps/app/src/pages/**",
  114. "apps/app/src/server/**",
  115. "apps/app/src/components/**"
  116. ],
  117. "linter": {
  118. "rules": {
  119. "style": {
  120. "noRestrictedImports": {
  121. "level": "error",
  122. "options": {
  123. "paths": {
  124. "axios": "Please use src/utils/axios instead."
  125. },
  126. "patterns": [
  127. {
  128. "group": ["~/client/**", "**/client/**", "client/**"],
  129. "message": "Importing from client/ directories is restricted."
  130. }
  131. ]
  132. }
  133. }
  134. }
  135. }
  136. }
  137. }
  138. ]
  139. }