mirror of
https://github.com/element-hq/element-desktop
synced 2025-03-26 10:43:34 +01:00
137 lines
4.7 KiB
JSON
137 lines
4.7 KiB
JSON
{
|
|
"$schema": "https://biomejs.dev/schemas/1.9.4/schema.json",
|
|
"vcs": {
|
|
"enabled": true,
|
|
"clientKind": "git",
|
|
"useIgnoreFile": true
|
|
},
|
|
"files": {
|
|
"ignoreUnknown": false,
|
|
"ignore": []
|
|
},
|
|
"formatter": {
|
|
"enabled": true,
|
|
"useEditorconfig": true,
|
|
"formatWithErrors": false,
|
|
"indentStyle": "space",
|
|
"indentWidth": 4,
|
|
"lineEnding": "lf",
|
|
"lineWidth": 120,
|
|
"attributePosition": "auto",
|
|
"bracketSpacing": true
|
|
},
|
|
"organizeImports": { "enabled": true },
|
|
"linter": {
|
|
"enabled": true,
|
|
"rules": {
|
|
"recommended": false,
|
|
"complexity": {
|
|
"noExtraBooleanCast": "error",
|
|
"noMultipleSpacesInRegularExpressionLiterals": "error",
|
|
"noUselessCatch": "error",
|
|
"noWith": "error"
|
|
},
|
|
"correctness": {
|
|
"noConstAssign": "error",
|
|
"noConstantCondition": "error",
|
|
"noEmptyCharacterClassInRegex": "error",
|
|
"noEmptyPattern": "error",
|
|
"noGlobalObjectCalls": "error",
|
|
"noInnerDeclarations": "error",
|
|
"noInvalidConstructorSuper": "error",
|
|
"noNewSymbol": "error",
|
|
"noNonoctalDecimalEscape": "error",
|
|
"noPrecisionLoss": "error",
|
|
"noSelfAssign": "error",
|
|
"noSetterReturn": "error",
|
|
"noSwitchDeclarations": "error",
|
|
"noUndeclaredVariables": "error",
|
|
"noUnreachable": "error",
|
|
"noUnreachableSuper": "error",
|
|
"noUnsafeFinally": "error",
|
|
"noUnsafeOptionalChaining": "error",
|
|
"noUnusedLabels": "error",
|
|
"noUnusedVariables": "error",
|
|
"useArrayLiterals": "error",
|
|
"useIsNan": "error",
|
|
"useValidForDirection": "error",
|
|
"useYield": "error"
|
|
},
|
|
"style": {
|
|
"noArguments": "error",
|
|
"noVar": "error",
|
|
"useBlockStatements": "off",
|
|
"useConsistentBuiltinInstantiation": "error",
|
|
"useConst": "error",
|
|
"useNodejsImportProtocol": "error",
|
|
"useSingleVarDeclarator": "error",
|
|
"useThrowOnlyError": "error",
|
|
"useImportType": "error",
|
|
"useExportType": "error"
|
|
},
|
|
"suspicious": {
|
|
"noAssignInExpressions": "error",
|
|
"noAsyncPromiseExecutor": "error",
|
|
"noCatchAssign": "error",
|
|
"noClassAssign": "error",
|
|
"noCompareNegZero": "error",
|
|
"noConsole": "off",
|
|
"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",
|
|
"noSparseArray": "error",
|
|
"noUnsafeNegation": "error",
|
|
"useGetterReturn": "error",
|
|
"useIsArray": "error",
|
|
"useValidTypeof": "error"
|
|
}
|
|
}
|
|
},
|
|
"javascript": {
|
|
"formatter": {
|
|
"jsxQuoteStyle": "double",
|
|
"quoteProperties": "asNeeded",
|
|
"trailingCommas": "all",
|
|
"semicolons": "always",
|
|
"arrowParentheses": "always",
|
|
"bracketSameLine": false,
|
|
"quoteStyle": "double",
|
|
"attributePosition": "auto",
|
|
"bracketSpacing": true
|
|
}
|
|
},
|
|
"overrides": [
|
|
{
|
|
"include": ["src/**/*.ts", "hak/**/*.ts", "scripts/**/*.ts", "playwright/**/*.ts"],
|
|
"linter": {
|
|
"rules": {
|
|
"style": { "noNonNullAssertion": "off" },
|
|
"suspicious": { "noExplicitAny": "off" }
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"include": ["playwright/**/*.ts"],
|
|
"linter": {
|
|
"rules": {
|
|
"correctness": {
|
|
"noEmptyPattern": "off"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
]
|
|
}
|