mara-li_obsidian-simple-col.../biome.json
2025-11-07 23:25:47 +01:00

131 lines
No EOL
2.8 KiB
JSON

{
"$schema": "./node_modules/@biomejs/biome/configuration_schema.json",
"assist": {
"actions": {
"source": {
"organizeImports": "on"
}
}
},
"linter": {
"enabled": true,
"rules": {
"recommended": false,
"complexity": {
"noExtraBooleanCast": "error",
"noUselessCatch": "error",
"noAdjacentSpacesInRegex": "error"
},
"style": {
"useFilenamingConvention": "error",
"useImportType": "error",
"useNamingConvention": {
"level": "warn",
"options": {
"strictCase": false
}
},
"useTemplate": "warn",
"useConst": "error"
},
"correctness": {
"noConstAssign": "error",
"noConstantCondition": "error",
"noEmptyCharacterClassInRegex": "error",
"noEmptyPattern": "error",
"noGlobalObjectCalls": "error",
"noInnerDeclarations": "error",
"noInvalidConstructorSuper": "error",
"noNonoctalDecimalEscape": "error",
"noPrecisionLoss": "error",
"noSelfAssign": "error",
"noSetterReturn": "error",
"noSwitchDeclarations": "error",
"noUndeclaredVariables": "error",
"noUnreachable": "error",
"noUnreachableSuper": "error",
"noUnsafeFinally": "error",
"noUnsafeOptionalChaining": "error",
"noUnusedLabels": "error",
"noUnusedVariables": "warn",
"noUnusedImports": "warn",
"useIsNan": "error",
"useValidForDirection": "error",
"useYield": "error",
"noInvalidBuiltinInstantiation": "error"
},
"suspicious": {
"noAssignInExpressions": "error",
"noAsyncPromiseExecutor": "error",
"noCatchAssign": "error",
"noClassAssign": "error",
"noCompareNegZero": "error",
"noControlCharactersInRegex": "error",
"noDebugger": "error",
"noDuplicateCase": "error",
"noDuplicateClassMembers": "error",
"noDuplicateObjectKeys": "error",
"noDuplicateParameters": "error",
"noEmptyBlockStatements": "error",
"noFallthroughSwitchClause": "error",
"noFunctionAssign": "error",
"noGlobalAssign": "error",
"noImportAssign": "error",
"noMisleadingCharacterClass": "error",
"noPrototypeBuiltins": "error",
"noRedeclare": "error",
"noShadowRestrictedNames": "error",
"noUnsafeNegation": "error",
"useGetterReturn": "error",
"noVar": "error"
}
},
"includes": [
"**",
"!**/npm node_modules",
"!**/build",
"!**/dist",
"!**/src/i18n/locales"
]
},
"overrides": [
{
"includes": [
"**/*.ts",
"**/*.tsx",
"!**/*.js"
]
},
{
"includes": [
"**/*.js"
]
},
{
"includes": [
"**/*.json"
]
}
],
"formatter": {
"enabled": true,
"indentStyle": "tab",
"indentWidth": 2,
"lineWidth": 90
},
"javascript": {
"globals": [
"sleep"
],
"formatter": {
"quoteStyle": "double",
"semicolons": "always",
"trailingCommas": "es5"
}
},
"json": {
"formatter": {
"trailingCommas": "none"
}
}
}