biome.json 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. {
  2. "$schema": "https://biomejs.dev/schemas/2.4.10/schema.json",
  3. "vcs": {
  4. "enabled": true,
  5. "clientKind": "git",
  6. "useIgnoreFile": true
  7. },
  8. "files": {
  9. "includes": ["**", "!!**/dist", "!!**/packages/@ant"]
  10. },
  11. "formatter": {
  12. "enabled": true,
  13. "indentStyle": "tab",
  14. "lineWidth": 120
  15. },
  16. "linter": {
  17. "enabled": true,
  18. "rules": {
  19. "recommended": true,
  20. "suspicious": {
  21. "noExplicitAny": "off",
  22. "noAssignInExpressions": "off",
  23. "noDoubleEquals": "off",
  24. "noRedeclare": "off",
  25. "noImplicitAnyLet": "off",
  26. "noGlobalIsNan": "off",
  27. "noFallthroughSwitchClause": "off",
  28. "noShadowRestrictedNames": "off"
  29. },
  30. "style": {
  31. "useConst": "off",
  32. "noNonNullAssertion": "off",
  33. "noParameterAssign": "off",
  34. "useDefaultParameterLast": "off",
  35. "noUnusedTemplateLiteral": "off",
  36. "useTemplate": "off",
  37. "useNumberNamespace": "off"
  38. },
  39. "complexity": {
  40. "noForEach": "off",
  41. "noBannedTypes": "off",
  42. "noUselessConstructor": "off",
  43. "noStaticOnlyClass": "off",
  44. "useOptionalChain": "off",
  45. "noUselessSwitchCase": "off",
  46. "noUselessFragments": "off",
  47. "noUselessTernary": "off",
  48. "noUselessLoneBlockStatements": "off"
  49. },
  50. "correctness": {
  51. "noUnusedVariables": "off",
  52. "noUnusedImports": "off",
  53. "useExhaustiveDependencies": "off",
  54. "noSwitchDeclarations": "off",
  55. "noUnreachable": "off",
  56. "useHookAtTopLevel": "off"
  57. },
  58. "a11y": {
  59. "recommended": false
  60. },
  61. "nursery": {
  62. "recommended": false
  63. }
  64. }
  65. },
  66. "javascript": {
  67. "formatter": {
  68. "quoteStyle": "double"
  69. }
  70. },
  71. "assist": {
  72. "enabled": true,
  73. "actions": {
  74. "source": {
  75. "organizeImports": "on"
  76. }
  77. }
  78. }
  79. }