biome.json 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. {
  2. "$schema": "https://biomejs.dev/schemas/1.7.3/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. },
  18. "complexity": {
  19. "noForEach": "warn",
  20. "noUselessCatch": "warn",
  21. "noBannedTypes": "warn"
  22. }
  23. }
  24. },
  25. "formatter": {
  26. "enabled": true,
  27. "formatWithErrors": false,
  28. "indentStyle": "space",
  29. "indentWidth": 2,
  30. "lineEnding": "lf",
  31. "lineWidth": 150,
  32. "attributePosition": "auto"
  33. },
  34. "javascript": {
  35. "formatter": {
  36. "jsxQuoteStyle": "double",
  37. "quoteProperties": "asNeeded",
  38. "trailingCommas": "all",
  39. "semicolons": "always",
  40. "arrowParentheses": "always",
  41. "bracketSpacing": true,
  42. "bracketSameLine": false,
  43. "quoteStyle": "single",
  44. "attributePosition": "auto"
  45. }
  46. },
  47. "json": {
  48. "formatter": {
  49. "trailingCommas": "none"
  50. }
  51. },
  52. "files": {
  53. "ignore": ["node_modules"],
  54. "include": ["**/*.ts", "**/*.js", "**/*.json"]
  55. }
  56. }