biome.json 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. {
  2. "$schema": "https://biomejs.dev/schemas/1.9.4/schema.json",
  3. "organizeImports": {
  4. "enabled": false
  5. },
  6. "files": {
  7. "ignore": [
  8. "node_modules/**",
  9. "dist/**",
  10. "**/tsconfig*",
  11. "libs/editor/examples/**/*.json",
  12. "libs/editor/src/examples/**/annotations/1.json",
  13. "apps/labelstudio-e2e/**"
  14. ],
  15. "maxSize": 3670016
  16. },
  17. "vcs": {
  18. "enabled": true,
  19. "clientKind": "git",
  20. "useIgnoreFile": true,
  21. "defaultBranch": "develop"
  22. },
  23. "formatter": {
  24. "indentStyle": "space",
  25. "indentWidth": 2,
  26. "lineWidth": 120
  27. },
  28. "css": {
  29. "linter": {
  30. "enabled": false
  31. },
  32. "formatter": {
  33. "enabled": false
  34. }
  35. },
  36. "linter": {
  37. "enabled": true,
  38. "rules": {
  39. "recommended": true,
  40. "a11y": {
  41. "noAutofocus": "off",
  42. "useKeyWithClickEvents": "off",
  43. "noLabelWithoutControl": "off"
  44. },
  45. "suspicious": {
  46. "noExplicitAny": "off",
  47. "noAssignInExpressions": "off",
  48. "noGlobalIsNan": "off",
  49. "noArrayIndexKey": "off",
  50. "noAsyncPromiseExecutor": "off",
  51. "noConfusingVoidType": "off",
  52. "noImplicitAnyLet": "off",
  53. "noShadowRestrictedNames": "off",
  54. "useGetterReturn": "off"
  55. },
  56. "complexity": {
  57. "noForEach": "off",
  58. "useOptionalChain": "off",
  59. "noBannedTypes": "off",
  60. "noStaticOnlyClass": "off",
  61. "noUselessFragments": "off"
  62. },
  63. "correctness": {
  64. "useExhaustiveDependencies": "off",
  65. "noChildrenProp": "off",
  66. "useJsxKeyInIterable": "off",
  67. "noUnusedImports": {
  68. "level": "warn"
  69. },
  70. "noUnusedVariables": {
  71. "level": "warn"
  72. }
  73. },
  74. "performance": {
  75. "noAccumulatingSpread": "off",
  76. "noDelete": "off"
  77. },
  78. "style": {
  79. "noNonNullAssertion": "off",
  80. "useDefaultParameterLast": "off",
  81. "useNodejsImportProtocol": "off",
  82. "noParameterAssign": "off"
  83. },
  84. "nursery": {},
  85. "security": {
  86. "noDangerouslySetInnerHtml": "off"
  87. }
  88. }
  89. }
  90. }