robot-u-site/frontend/biome.json

72 lines
1.5 KiB
JSON
Raw Permalink Normal View History

2026-04-08 06:03:48 -04:00
{
"$schema": "https://biomejs.dev/schemas/2.4.6/schema.json",
"vcs": {
"enabled": true,
"clientKind": "git",
"useIgnoreFile": false
},
"files": {
"includes": ["**", "!!**/dist", "!!**/node_modules"]
},
"formatter": {
"enabled": true,
"indentStyle": "space",
"indentWidth": 2,
"lineWidth": 100
},
"linter": {
"enabled": true,
"rules": {
"recommended": true,
"a11y": {
"useGenericFontNames": "off"
},
"correctness": {
"noUnusedVariables": "error",
"noUnusedImports": "error",
"noUnusedFunctionParameters": "warn",
"noUnusedPrivateClassMembers": "error",
"noUnreachable": "error",
"noConstantCondition": "error"
},
"complexity": {
"noExcessiveCognitiveComplexity": {
"level": "warn",
"options": { "maxAllowedComplexity": 15 }
},
"noExcessiveLinesPerFunction": {
"level": "warn",
"options": { "maxLines": 80 }
},
"useMaxParams": {
"level": "warn",
"options": { "max": 5 }
}
},
"suspicious": {
"noExplicitAny": "warn"
},
"style": {
"useConst": "error"
}
}
},
"javascript": {
"formatter": {
"quoteStyle": "double",
"semicolons": "always",
"trailingCommas": "all",
"arrowParentheses": "always"
}
},
"assist": {
"enabled": true,
"actions": {
"source": {
"organizeImports": "on"
}
}
}
}