1
0
mirror of https://github.com/Unleash/unleash.git synced 2026-01-05 20:06:22 +01:00
unleash.unleash/biome.json
2025-12-11 17:23:18 +01:00

108 lines
2.6 KiB
JSON

{
"$schema": "https://biomejs.dev/schemas/2.3.8/schema.json",
"linter": {
"enabled": true,
"rules": {
"recommended": true,
"a11y": {
"useSemanticElements": "off",
"useKeyWithClickEvents": "off",
"noStaticElementInteractions": "off"
},
"correctness": {
"noUnsafeOptionalChaining": "off",
"useExhaustiveDependencies": "off",
"noUnusedImports": "warn",
"useJsxKeyInIterable": "off",
"useHookAtTopLevel": "off",
"noUnusedFunctionParameters": "off",
"noUnusedVariables": "off"
},
"complexity": {
"noBannedTypes": "off",
"noUselessConstructor": "off",
"useOptionalChain": "warn",
"noStaticOnlyClass": "off",
"noForEach": "off",
"noUselessFragments": "off"
},
"style": {
"noNonNullAssertion": "off",
"noInferrableTypes": "off",
"noUnusedTemplateLiteral": "off",
"useSingleVarDeclarator": "off",
"noUselessElse": "off",
"useNodejsImportProtocol": "off"
},
"suspicious": {
"noExplicitAny": "off",
"noExtraNonNullAssertion": "off",
"noRedeclare": "off",
"noPrototypeBuiltins": "off",
"noConfusingVoidType": "off",
"noArrayIndexKey": "off",
"noThenProperty": "off",
"noExportsInTest": "off",
"noNonNullAssertedOptionalChain": "off"
},
"performance": {
"noAccumulatingSpread": "off",
"noDelete": "off"
}
}
},
"assist": { "actions": { "source": { "organizeImports": "off" } } },
"formatter": {
"indentStyle": "space",
"indentWidth": 4
},
"javascript": {
"formatter": {
"semicolons": "always",
"quoteStyle": "single",
"jsxQuoteStyle": "single",
"indentWidth": 4
}
},
"json": {
"formatter": {
"indentWidth": 2
}
},
"overrides": [
{
"linter": {
"rules": {
"correctness": {
"useHookAtTopLevel": "off"
}
}
}
}
],
"files": {
"includes": [
"**",
"!**/node_modules",
"!**/docker",
"!**/bundle.js",
"!**/website/build",
"!**/website/docs/generated",
"!**/website/global.js",
"!**/website",
"!**/setupJest.js",
"!**/dist",
"!**/build",
"!**/src/migrations/**/*.js",
"!**/src/test/examples/**/*.json",
"!**/.docusaurus",
"!**/coverage",
"!**/CHANGELOG.md",
"!package.json",
"!frontend/package.json",
"!src/migrations/package.json",
"!**/.vite"
]
}
}