biome.json 3.3 KB

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