biome.json 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. {
  2. "$schema": "./node_modules/@biomejs/biome/configuration_schema.json",
  3. "vcs": {
  4. "enabled": true,
  5. "clientKind": "git",
  6. "useIgnoreFile": true,
  7. "defaultBranch": "master"
  8. },
  9. "organizeImports": {
  10. "enabled": false
  11. },
  12. "linter": {
  13. "enabled": true,
  14. "rules": {
  15. "recommended": false,
  16. "nursery": {
  17. "useExportType": "error",
  18. "useImportType": "error"
  19. }
  20. }
  21. },
  22. "files": {
  23. "ignoreUnknown": true,
  24. "ignore": [
  25. "**/*/trace.json",
  26. "static/app/data/world.json",
  27. "**/*.sourcemap.js",
  28. "**/*.min.js",
  29. "fixtures"
  30. ]
  31. },
  32. "formatter": {
  33. "enabled": true,
  34. "formatWithErrors": true,
  35. "indentStyle": "space",
  36. "indentWidth": 2,
  37. "lineEnding": "lf",
  38. "ignore": ["tests/**/*.json"]
  39. },
  40. "javascript": {
  41. "formatter": {
  42. "enabled": true,
  43. "lineWidth": 90,
  44. "quoteStyle": "single",
  45. "jsxQuoteStyle": "double",
  46. "quoteProperties": "asNeeded",
  47. "trailingComma": "es5",
  48. "semicolons": "always",
  49. "arrowParentheses": "asNeeded",
  50. "bracketSpacing": false,
  51. "bracketSameLine": false
  52. }
  53. },
  54. "json": {
  55. "formatter": {
  56. "enabled": true
  57. },
  58. "parser": {
  59. "allowComments": true,
  60. "allowTrailingCommas": true
  61. }
  62. }
  63. }