biome.json 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. {
  2. "$schema": "https://biomejs.dev/schemas/1.8.1/schema.json",
  3. "organizeImports": {
  4. "enabled": true
  5. },
  6. "linter": {
  7. "enabled": true,
  8. "rules": {
  9. "recommended": true,
  10. "suspicious": {
  11. "noExplicitAny": "off",
  12. "noAssignInExpressions": "warn",
  13. "noExportsInTest": "warn"
  14. },
  15. "style": {
  16. "noParameterAssign": "warn",
  17. "useImportType": "off"
  18. },
  19. "complexity": {
  20. "noForEach": "warn",
  21. "noUselessCatch": "warn",
  22. "noBannedTypes": "warn"
  23. }
  24. }
  25. },
  26. "formatter": {
  27. "enabled": true,
  28. "formatWithErrors": false,
  29. "indentStyle": "space",
  30. "indentWidth": 2,
  31. "lineEnding": "lf",
  32. "lineWidth": 150,
  33. "attributePosition": "auto"
  34. },
  35. "javascript": {
  36. "formatter": {
  37. "jsxQuoteStyle": "double",
  38. "quoteProperties": "asNeeded",
  39. "trailingCommas": "all",
  40. "semicolons": "always",
  41. "arrowParentheses": "always",
  42. "bracketSpacing": true,
  43. "bracketSameLine": false,
  44. "quoteStyle": "single",
  45. "attributePosition": "auto"
  46. }
  47. },
  48. "json": {
  49. "formatter": {
  50. "trailingCommas": "none"
  51. }
  52. },
  53. "files": {
  54. "ignore": ["node_modules"],
  55. "include": ["**/*.ts", "**/*.js", "**/*.json", "**/*.mjs"]
  56. }
  57. }