/ biome.json
biome.json
  1  {
  2    "$schema": "https://biomejs.dev/schemas/1.9.4/schema.json",
  3    "organizeImports": {
  4      "enabled": true
  5    },
  6    "linter": {
  7      "enabled": true,
  8      "rules": {
  9        "recommended": true,
 10        "complexity": {
 11          "noExcessiveCognitiveComplexity": "warn",
 12          "noVoid": "warn",
 13          "useLiteralKeys": "warn",
 14          "noUselessSwitchCase": "warn",
 15          "noForEach": "warn",
 16          "noUselessConstructor": "warn",
 17          "noStaticOnlyClass": "warn",
 18          "noThisInStatic": "warn",
 19          "noUselessFragments": "warn",
 20          "noUselessCatch": "warn",
 21          "noUselessLabel": "warn",
 22          "noUselessRename": "warn"
 23        },
 24        "suspicious": {
 25          "noConsoleLog": {
 26            "level": "warn"
 27          },
 28          "noExplicitAny": "off",
 29          "noDoubleEquals": "warn",
 30          "noEmptyInterface": "warn",
 31          "noImplicitAnyLet": "off",
 32          "noSelfCompare": "warn",
 33          "noThenProperty": "warn"
 34        },
 35        "style": {
 36          "noArguments": "warn",
 37          "noDefaultExport": "off",
 38          "noInferrableTypes": "warn",
 39          "noNamespace": "warn",
 40          "noVar": "warn",
 41          "useBlockStatements": "warn",
 42          "useConst": "warn",
 43          "useTemplate": "warn"
 44        },
 45        "nursery": {},
 46        "correctness": {
 47          "noUnreachable": "warn",
 48          "noConstantCondition": "warn",
 49          "noUndeclaredVariables": "warn"
 50        },
 51        "performance": {
 52          "noAccumulatingSpread": "warn",
 53          "noDelete": "warn"
 54        },
 55        "security": {
 56          "noDangerouslySetInnerHtml": "warn"
 57        }
 58      }
 59    },
 60    "formatter": {
 61      "enabled": true,
 62      "indentStyle": "space",
 63      "indentWidth": 2,
 64      "lineWidth": 100
 65    },
 66    "javascript": {
 67      "formatter": {
 68        "quoteStyle": "single",
 69        "trailingCommas": "all",
 70        "semicolons": "always",
 71        "arrowParentheses": "asNeeded",
 72        "bracketSpacing": true,
 73        "bracketSameLine": false,
 74        "quoteProperties": "asNeeded",
 75        "jsxQuoteStyle": "single"
 76      },
 77      "parser": {
 78        "unsafeParameterDecoratorsEnabled": false
 79      },
 80      "globals": [
 81        "jest",
 82        "expect",
 83        "describe",
 84        "test",
 85        "beforeEach",
 86        "afterEach",
 87        "beforeAll",
 88        "afterAll"
 89      ]
 90    },
 91    "json": {
 92      "parser": {
 93        "allowComments": false
 94      },
 95      "formatter": {
 96        "lineWidth": 80
 97      }
 98    },
 99    "files": {
100      "ignore": [
101        ".git/**",
102        "node_modules/**",
103        "dist/**",
104        "build/**",
105        "public/**",
106        "*.min.js",
107        "wrkr/**/final.js"
108      ]
109    },
110    "vcs": {
111      "enabled": true,
112      "useIgnoreFile": true,
113      "clientKind": "git"
114    },
115    "overrides": [
116      {
117        "include": ["**/*.yml", "**/*.yaml"],
118        "formatter": {
119          "enabled": true
120        },
121        "javascript": {
122          "formatter": {
123            "quoteStyle": "double"
124          }
125        }
126      },
127      {
128        "include": ["**/*.md"],
129        "formatter": {
130          "enabled": true
131        }
132      },
133      {
134        "include": ["**/*.html", "**/*.htm"],
135        "formatter": {
136          "lineWidth": 120
137        }
138      }
139    ]
140  }