biome.json 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  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": false,
  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. "noArrayIndexKey": "off",
  30. "noConsole": "off",
  31. "noConfusingLabels": "off",
  32. "useIterableCallbackReturn": "off"
  33. },
  34. "style": {
  35. "useConst": "off",
  36. "noNonNullAssertion": "off",
  37. "noParameterAssign": "off",
  38. "useDefaultParameterLast": "off",
  39. "noUnusedTemplateLiteral": "off",
  40. "useTemplate": "off",
  41. "useNumberNamespace": "off",
  42. "useNodejsImportProtocol": "off",
  43. "useImportType": "off"
  44. },
  45. "complexity": {
  46. "noForEach": "off",
  47. "noBannedTypes": "off",
  48. "noUselessConstructor": "off",
  49. "noStaticOnlyClass": "off",
  50. "useOptionalChain": "off",
  51. "noUselessSwitchCase": "off",
  52. "noUselessFragments": "off",
  53. "noUselessTernary": "off",
  54. "noUselessLoneBlockStatements": "off",
  55. "noUselessEmptyExport": "off",
  56. "useArrowFunction": "off",
  57. "useLiteralKeys": "off"
  58. },
  59. "correctness": {
  60. "noUnusedVariables": "off",
  61. "noUnusedImports": "off",
  62. "useExhaustiveDependencies": "off",
  63. "noSwitchDeclarations": "off",
  64. "noUnreachable": "off",
  65. "useHookAtTopLevel": "off",
  66. "noVoidTypeReturn": "off",
  67. "noConstantCondition": "off",
  68. "noUnusedFunctionParameters": "off"
  69. },
  70. "a11y": {
  71. "recommended": false
  72. },
  73. "nursery": {
  74. "recommended": false
  75. }
  76. }
  77. },
  78. "javascript": {
  79. "formatter": {
  80. "quoteStyle": "double"
  81. }
  82. },
  83. "assist": {
  84. "enabled": false
  85. }
  86. }