biome.json 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114
  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": "space",
  14. "indentWidth": 2,
  15. "lineWidth": 80
  16. },
  17. "linter": {
  18. "enabled": true,
  19. "rules": {
  20. "recommended": true,
  21. "suspicious": {
  22. "noExplicitAny": "off",
  23. "noAssignInExpressions": "off",
  24. "noDoubleEquals": "off",
  25. "noRedeclare": "off",
  26. "noImplicitAnyLet": "off",
  27. "noGlobalIsNan": "off",
  28. "noFallthroughSwitchClause": "off",
  29. "noShadowRestrictedNames": "off",
  30. "noArrayIndexKey": "off",
  31. "noConsole": "off",
  32. "noConfusingLabels": "off",
  33. "useIterableCallbackReturn": "off"
  34. },
  35. "style": {
  36. "useConst": "off",
  37. "noNonNullAssertion": "off",
  38. "noParameterAssign": "off",
  39. "useDefaultParameterLast": "off",
  40. "noUnusedTemplateLiteral": "off",
  41. "useTemplate": "off",
  42. "useNumberNamespace": "off",
  43. "useNodejsImportProtocol": "off",
  44. "useImportType": "off"
  45. },
  46. "complexity": {
  47. "noForEach": "off",
  48. "noBannedTypes": "off",
  49. "noUselessConstructor": "off",
  50. "noStaticOnlyClass": "off",
  51. "useOptionalChain": "off",
  52. "noUselessSwitchCase": "off",
  53. "noUselessFragments": "off",
  54. "noUselessTernary": "off",
  55. "noUselessLoneBlockStatements": "off",
  56. "noUselessEmptyExport": "off",
  57. "useArrowFunction": "off",
  58. "useLiteralKeys": "off"
  59. },
  60. "correctness": {
  61. "noUnusedVariables": "off",
  62. "noUnusedImports": "off",
  63. "useExhaustiveDependencies": "off",
  64. "noSwitchDeclarations": "off",
  65. "noUnreachable": "off",
  66. "useHookAtTopLevel": "off",
  67. "noVoidTypeReturn": "off",
  68. "noConstantCondition": "off",
  69. "noUnusedFunctionParameters": "off"
  70. },
  71. "a11y": {
  72. "recommended": false
  73. },
  74. "nursery": {
  75. "recommended": false
  76. }
  77. }
  78. },
  79. "json": {
  80. "formatter": {
  81. "enabled": false
  82. }
  83. },
  84. "javascript": {
  85. "formatter": {
  86. "quoteStyle": "single",
  87. "semicolons": "asNeeded",
  88. "arrowParentheses": "asNeeded",
  89. "trailingCommas": "all"
  90. }
  91. },
  92. "overrides": [
  93. {
  94. "includes": ["**/*.tsx"],
  95. "javascript": {
  96. "formatter": {
  97. "semicolons": "always"
  98. }
  99. },
  100. "formatter": {
  101. "lineWidth": 120
  102. }
  103. },
  104. {
  105. "includes": ["scripts/**", "packages/**", "**/*.js", "**/*.mjs", "**/*.jsx"],
  106. "formatter": {
  107. "enabled": false
  108. }
  109. }
  110. ],
  111. "assist": {
  112. "enabled": false
  113. }
  114. }