biome.json 3.2 KB

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