biome.json
{
"$schema": "./node_modules/@biomejs/biome/configuration_schema.json",
"organizeImports": {
"enabled": false
},
"files": {
"ignore": ["theme.d.ts", "documentation/plugins", "documentation/static"]
},
"formatter": {
"enabled": true,
"indentStyle": "space",
"indentWidth": 2,
"lineWidth": 80
},
"javascript": {
"formatter": {
"arrowParentheses": "always",
"quoteStyle": "double",
"semicolons": "always",
"trailingComma": "all"
}
},
"json": {
"parser": {
"allowComments": false,
"allowTrailingCommas": false
}
},
"linter": {
"enabled": true,
"rules": {
"recommended": true,
"a11y": {
"noAriaHiddenOnFocusable": "warn",
"noAutofocus": "warn",
"noBlankTarget": "error",
"noNoninteractiveElementToInteractiveRole": "warn",
"noNoninteractiveTabindex": "warn",
"noPositiveTabindex": "warn",
"noSvgWithoutTitle": "warn",
"useAltText": "warn",
"useButtonType": "warn",
"useHtmlLang": "warn",
"useIframeTitle": "warn",
"useKeyWithClickEvents": "warn",
"useKeyWithMouseEvents": "warn",
"useValidAnchor": "warn"
},
"complexity": {
"noBannedTypes": "warn",
"noExtraBooleanCast": "error",
"noForEach": "off",
"noStaticOnlyClass": "error",
"noUselessCatch": "error",
"noUselessConstructor": "error",
"noUselessFragments": "off",
"noUselessRename": "error",
"noUselessSwitchCase": "error",
"useArrowFunction": "error",
"useLiteralKeys": "warn",
"useOptionalChain": "error"
},
"correctness": {
"noConstantCondition": "error",
"noEmptyPattern": "error",
"noSwitchDeclarations": "error",
"noUnreachable": "error",
"noUnsafeOptionalChaining": "error",
"useExhaustiveDependencies": "warn"
},
"performance": {
"noAccumulatingSpread": "warn",
"noDelete": "warn"
},
"security": {
"noDangerouslySetInnerHtml": "error"
},
"style": {
"noCommaOperator": "error",
"noNonNullAssertion": "warn",
"noParameterAssign": "warn",
"noUnusedTemplateLiteral": "error",
"noUselessElse": "error",
"useConst": "error",
"useDefaultParameterLast": "warn",
"useSelfClosingElements": "error",
"useSingleVarDeclarator": "error",
"useTemplate": "error"
},
"suspicious": {
"noArrayIndexKey": "warn",
"noAssignInExpressions": "error",
"noAsyncPromiseExecutor": "error",
"noConfusingVoidType": "warn",
"noControlCharactersInRegex": "error",
"noDoubleEquals": "error",
"noDuplicateJsxProps": "error",
"noDuplicateObjectKeys": "error",
"noEmptyInterface": "error",
"noExplicitAny": "warn",
"noFallthroughSwitchClause": "error",
"noGlobalIsNan": "error",
"noImplicitAnyLet": "warn",
"noPrototypeBuiltins": "error",
"noRedeclare": "error",
"noRedundantUseStrict": "error",
"noSelfCompare": "error",
"noShadowRestrictedNames": "warn",
"useDefaultSwitchClauseLast": "error",
"useValidTypeof": "error"
}
}
},
"vcs": {
"clientKind": "git",
"defaultBranch": "master",
"enabled": true,
"useIgnoreFile": true
}
}