biome/benchmark/biome.json
Emanuele Stoppa 836fa1e94c
fix: resolve settings based on path (#6175)
Co-authored-by: arendjr <533294+arendjr@users.noreply.github.com>
2025-05-30 12:09:24 +01:00

103 lines
3.4 KiB
JSON

{
"root": false,
"$schema": "../packages/@biomejs/biome/configuration_schema.json",
"formatter": {
"includes": ["**/*.js", "**/*.jsx", "**/*.cjs", "**/*.ts", "**/*.tsx"],
"indentStyle": "space"
},
"linter": {
"includes": ["**/*.js"],
"rules": {
"recommended": false,
"complexity": {
"noArguments": "error",
"noCommaOperator": "error",
"noExtraBooleanCast": "error",
"noAdjacentSpacesInRegex": "error",
"noUselessCatch": "error",
"noUselessConstructor": "error",
"noUselessLabel": "error",
"noUselessRename": "error",
"noVoid": "error",
"useArrowFunction": "error",
"useLiteralKeys": "error",
"useNumericLiterals": "error",
"useRegexLiterals": "error"
},
"correctness": {
"noConstAssign": "error",
"noConstantCondition": "error",
"noConstructorReturn": "error",
"noEmptyCharacterClassInRegex": "error",
"noEmptyPattern": "error",
"noGlobalObjectCalls": "error",
"noInnerDeclarations": "error",
"noInvalidConstructorSuper": "error",
"noInvalidUseBeforeDeclaration": "error",
"noNonoctalDecimalEscape": "error",
"noPrecisionLoss": "error",
"noSelfAssign": "error",
"noSetterReturn": "error",
"noSwitchDeclarations": "error",
"noUndeclaredVariables": "error",
"noUnreachable": "error",
"noUnreachableSuper": "error",
"noUnsafeFinally": "error",
"noUnsafeOptionalChaining": "error",
"noUnusedLabels": "error",
"noUnusedPrivateClassMembers": "error",
"noUnusedVariables": "error",
"useIsNan": "error",
"useValidForDirection": "error",
"useValidTypeof": "error",
"useYield": "error"
},
"security": {
"noGlobalEval": "error"
},
"style": {
"noParameterAssign": "error",
"useArrayLiterals": "error",
"useConst": "error",
"useCollapsedElseIf": "error",
"useDefaultParameterLast": "error",
"useExponentiationOperator": "error",
"useSingleVarDeclarator": "error",
"useTemplate": "error"
},
"suspicious": {
"noAsyncPromiseExecutor": "error",
"noAssignInExpressions": "error",
"noCatchAssign": "error",
"noClassAssign": "error",
"noCompareNegZero": "error",
"noConfusingLabels": "error",
"noControlCharactersInRegex": "error",
"noDebugger": "error",
"noDoubleEquals": "error",
"noDuplicateCase": "error",
"noDuplicateClassMembers": "error",
"noDuplicateObjectKeys": "error",
"noDuplicateParameters": "error",
"noEmptyBlockStatements": "error",
"noFallthroughSwitchClause": "error",
"noFunctionAssign": "error",
"noGlobalAssign": "error",
"noImportAssign": "error",
"noLabelVar": "error",
"noMisleadingCharacterClass": "error",
"noPrototypeBuiltins": "error",
"noRedeclare": "error",
"noSelfCompare": "error",
"noShadowRestrictedNames": "error",
"noSparseArray": "error",
"noUnsafeNegation": "error",
"noWith": "error",
"useAwait": "error",
"useDefaultSwitchClauseLast": "error",
"useGetterReturn": "error",
"noVar": "error"
}
}
}
}