biome.json 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  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. "noDuplicateJsonKeys": "error",
  18. "useExportType": "error",
  19. "useImportType": "error"
  20. }
  21. }
  22. },
  23. "files": {
  24. "ignoreUnknown": true,
  25. "ignore": [
  26. "**/*/trace.json",
  27. "static/app/data/world.json",
  28. "**/*.sourcemap.js",
  29. "**/*.min.js",
  30. "fixtures"
  31. ]
  32. },
  33. "formatter": {
  34. "enabled": true,
  35. "formatWithErrors": true,
  36. "indentStyle": "space",
  37. "indentWidth": 2,
  38. "lineEnding": "lf",
  39. "ignore": ["tests/**/*.json"]
  40. },
  41. "javascript": {
  42. "formatter": {
  43. "enabled": true,
  44. "lineWidth": 90,
  45. "quoteStyle": "single",
  46. "jsxQuoteStyle": "double",
  47. "quoteProperties": "asNeeded",
  48. "trailingComma": "es5",
  49. "semicolons": "always",
  50. "arrowParentheses": "asNeeded",
  51. "bracketSpacing": false,
  52. "bracketSameLine": false
  53. }
  54. },
  55. "json": {
  56. "formatter": {
  57. "enabled": true
  58. },
  59. "parser": {
  60. "allowComments": true,
  61. "allowTrailingCommas": true
  62. }
  63. }
  64. }