biome.json 1.3 KB

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