Skip to content

Instantly share code, notes, and snippets.

@baturax
Last active June 24, 2026 17:16
Show Gist options
  • Select an option

  • Save baturax/9a520f5b772394356991dd1e43b76b2b to your computer and use it in GitHub Desktop.

Select an option

Save baturax/9a520f5b772394356991dd1e43b76b2b to your computer and use it in GitHub Desktop.
biome.json with all options enabled
{
"$schema": "https://biomejs.dev/schemas/2.5.1/schema.json",
"assist": {
"actions": {
"source": {
"noDuplicateClasses": "on",
"organizeImports": "on",
"useSortedAttributes": "on",
"useSortedEnumMembers": "on",
"useSortedInterfaceMembers": "on",
"useSortedKeys": "on",
"useSortedPackageJson": "on",
"useSortedProperties": "on",
"useSortedSelectionSet": "on",
"useSortedTypeFields": "on"
}
},
"enabled": true
},
"css": {
"assist": {
"enabled": true
},
"formatter": {
"delimiterSpacing": true,
"enabled": true,
"indentStyle": "space",
"indentWidth": 2,
"lineEnding": "lf",
"lineWidth": 80,
"quoteStyle": "double",
"trailingNewline": true
},
"linter": {
"enabled": true
},
"parser": {
"allowWrongLineComments": true,
"cssModules": false,
"tailwindDirectives": true
}
},
"files": {
"ignoreUnknown": false
},
"formatter": {
"attributePosition": "auto",
"bracketSameLine": false,
"bracketSpacing": true,
"delimiterSpacing": true,
"enabled": true,
"expand": "always",
"formatWithErrors": true,
"indentStyle": "space",
"indentWidth": 2,
"lineEnding": "lf",
"lineWidth": 80,
"trailingNewline": true,
"useEditorconfig": false
},
"html": {
"assist": {
"enabled": true
},
"experimentalFullSupportEnabled": true,
"formatter": {
"attributePosition": "multiline",
"bracketSameLine": false,
"enabled": true,
"indentScriptAndStyle": true,
"indentStyle": "tab",
"indentWidth": 2,
"lineEnding": "lf",
"lineWidth": 80,
"selfCloseVoidElements": "always",
"trailingNewline": true,
"whitespaceSensitivity": "strict"
},
"linter": {
"enabled": true
},
"parser": {
"interpolation": true,
"vue": true
}
},
"javascript": {
"assist": {
"enabled": true
},
"experimentalEmbeddedSnippetsEnabled": true,
"formatter": {
"arrowParentheses": "always",
"attributePosition": "auto",
"bracketSameLine": false,
"bracketSpacing": true,
"delimiterSpacing": true,
"enabled": true,
"expand": "always",
"indentStyle": "space",
"indentWidth": 2,
"jsxQuoteStyle": "double",
"lineEnding": "lf",
"lineWidth": 80,
"operatorLinebreak": "after",
"quoteProperties": "asNeeded",
"quoteStyle": "double",
"semicolons": "always",
"trailingCommas": "all",
"trailingNewline": true
},
"jsxRuntime": "transparent",
"linter": {
"enabled": true
},
"parser": {
"gritMetavariables": false,
"jsxEverywhere": false,
"unsafeParameterDecoratorsEnabled": false
},
"resolver": {
"experimentalPnpmCatalogs": true
}
},
"json": {
"assist": {
"enabled": true
},
"formatter": {
"bracketSpacing": true,
"delimiterSpacing": true,
"enabled": true,
"expand": "always",
"indentStyle": "space",
"indentWidth": 2,
"lineEnding": "lf",
"lineWidth": 80,
"trailingCommas": "all",
"trailingNewline": true
},
"linter": {
"enabled": true
},
"parser": {
"allowComments": true,
"allowTrailingCommas": true
}
},
"linter": {
"enabled": true,
"rules": {
"a11y": {
"noAccessKey": "on",
"noAmbiguousAnchorText": "on",
"noAriaHiddenOnFocusable": "on",
"noAriaUnsupportedElements": "on",
"noAutofocus": "on",
"noDistractingElements": "on",
"noHeaderScope": "on",
"noInteractiveElementToNoninteractiveRole": "on",
"noLabelWithoutControl": "on",
"noNoninteractiveElementInteractions": "on",
"noNoninteractiveElementToInteractiveRole": "on",
"noNoninteractiveTabindex": "on",
"noPositiveTabindex": "on",
"noRedundantAlt": "on",
"noRedundantRoles": "on",
"noStaticElementInteractions": "on",
"noSvgWithoutTitle": "on",
"useAltText": "on",
"useAnchorContent": "on",
"useAriaActivedescendantWithTabindex": "on",
"useAriaPropsForRole": "on",
"useAriaPropsSupportedByRole": "on",
"useButtonType": "on",
"useFocusableInteractive": "on",
"useGenericFontNames": "on",
"useHeadingContent": "on",
"useHtmlLang": "on",
"useIframeTitle": "on",
"useKeyWithClickEvents": "on",
"useKeyWithMouseEvents": "on",
"useMediaCaption": "on",
"useSemanticElements": "on",
"useValidAnchor": "on",
"useValidAriaProps": "on",
"useValidAriaRole": "on",
"useValidAriaValues": "on",
"useValidAutocomplete": "on",
"useValidLang": "on"
},
"complexity": {
"noAdjacentSpacesInRegex": "on",
"noArguments": "on",
"noBannedTypes": "on",
"noCommaOperator": "on",
"noDivRegex": "on",
"noEmptyTypeParameters": "on",
"noExcessiveCognitiveComplexity": "on",
"noExcessiveLinesPerFunction": "on",
"noExcessiveNestedTestSuites": "on",
"noExtraBooleanCast": "on",
"noFlatMapIdentity": "on",
"noForEach": "on",
"noImplicitCoercions": "on",
"noImportantStyles": "on",
"noRedundantDefaultExport": "on",
"noStaticOnlyClass": "on",
"noThisInStatic": "on",
"noUselessCatch": "on",
"noUselessCatchBinding": "on",
"noUselessConstructor": "on",
"noUselessContinue": "on",
"noUselessEmptyExport": "on",
"noUselessEscapeInRegex": "on",
"noUselessFragments": "on",
"noUselessLabel": "on",
"noUselessLoneBlockStatements": "on",
"noUselessRename": "on",
"noUselessReturn": "on",
"noUselessStringConcat": "on",
"noUselessStringRaw": "on",
"noUselessSwitchCase": "on",
"noUselessTernary": "on",
"noUselessThisAlias": "on",
"noUselessTypeConstraint": "on",
"noUselessUndefined": "on",
"noUselessUndefinedInitialization": "on",
"noVoid": "on",
"useArrayFind": "on",
"useArrowFunction": "on",
"useDateNow": "on",
"useFlatMap": "on",
"useIndexOf": "on",
"useLiteralKeys": "on",
"useMaxParams": "on",
"useNumericLiterals": "on",
"useOptionalChain": "on",
"useRegexLiterals": "on",
"useSimpleNumberKeys": "on",
"useSimplifiedLogicExpression": "on",
"useWhile": "on"
},
"correctness": {
"noBeforeInteractiveScriptOutsideDocument": "on",
"noChildrenProp": "on",
"noConstantCondition": "on",
"noConstantMathMinMaxClamp": "on",
"noConstAssign": "on",
"noConstructorReturn": "on",
"noDuplicateArgumentNames": "on",
"noDuplicateAttributes": "on",
"noDuplicateEnumValueNames": "on",
"noDuplicateInputFieldNames": "on",
"noDuplicateVariableNames": "on",
"noEmptyCharacterClassInRegex": "on",
"noEmptyPattern": "on",
"noGlobalDirnameFilename": "on",
"noGlobalObjectCalls": "on",
"noInnerDeclarations": "on",
"noInvalidBuiltinInstantiation": "on",
"noInvalidConstructorSuper": "on",
"noInvalidDirectionInLinearGradient": "on",
"noInvalidGridAreas": "on",
"noInvalidPositionAtImportRule": "on",
"noInvalidUseBeforeDeclaration": "on",
"noMissingVarFunction": "on",
"noNestedComponentDefinitions": "on",
"noNextAsyncClientComponent": "on",
"noNodejsModules": "on",
"noNonoctalDecimalEscape": "on",
"noPrecisionLoss": "on",
"noPrivateImports": "on",
"noProcessGlobal": "on",
"noQwikUseVisibleTask": "on",
"noReactPropAssignments": "on",
"noRenderReturnValue": "on",
"noRestrictedElements": "on",
"noSelfAssign": "on",
"noSetterReturn": "on",
"noSolidDestructuredProps": "on",
"noStringCaseMismatch": "on",
"noSwitchDeclarations": "on",
"noUndeclaredDependencies": "on",
"noUndeclaredVariables": "on",
"noUnknownFunction": "on",
"noUnknownMediaFeatureName": "on",
"noUnknownProperty": "on",
"noUnknownPseudoClass": "on",
"noUnknownPseudoElement": "on",
"noUnknownTypeSelector": "on",
"noUnknownUnit": "on",
"noUnmatchableAnbSelector": "on",
"noUnreachable": "on",
"noUnreachableSuper": "on",
"noUnresolvedImports": "on",
"noUnsafeFinally": "on",
"noUnsafeOptionalChaining": "on",
"noUnusedFunctionParameters": "on",
"noUnusedImports": "on",
"noUnusedInstantiation": "on",
"noUnusedLabels": "on",
"noUnusedPrivateClassMembers": "on",
"noUnusedVariables": "on",
"noVoidElementsWithChildren": "on",
"noVoidTypeReturn": "on",
"noVueDataObjectDeclaration": "on",
"noVueDuplicateKeys": "on",
"noVueReservedKeys": "on",
"noVueReservedProps": "on",
"noVueSetupPropsReactivityLoss": "on",
"noVueVIfWithVFor": "on",
"useExhaustiveDependencies": "on",
"useGraphqlNamedOperations": "on",
"useHookAtTopLevel": "on",
"useImageSize": "on",
"useImportExtensions": "on",
"useInlineScriptId": "on",
"useIsNan": "on",
"useJsonImportAttributes": "on",
"useJsxKeyInIterable": "on",
"useLoneAnonymousOperation": "on",
"useParseIntRadix": "on",
"useQwikClasslist": "on",
"useQwikMethodUsage": "on",
"useQwikValidLexicalScope": "on",
"useSingleJsDocAsterisk": "on",
"useUniqueElementIds": "on",
"useValidForDirection": "on",
"useValidTypeof": "on",
"useVueValidTemplateRoot": "on",
"useVueValidVBind": "on",
"useVueValidVCloak": "on",
"useVueValidVElse": "on",
"useVueValidVElseIf": "on",
"useVueValidVHtml": "on",
"useVueValidVIf": "on",
"useVueValidVOn": "on",
"useVueValidVOnce": "on",
"useVueValidVPre": "on",
"useVueValidVText": "on",
"useVueVForKey": "on",
"useYield": "on"
},
"nursery": {
"noBaseToString": "on",
"noComponentHookFactories": "on",
"noConditionalExpect": "on",
"noDrizzleDeleteWithoutWhere": "on",
"noDrizzleUpdateWithoutWhere": "on",
"noDuplicateFieldDefinitionNames": "on",
"noDuplicateSelectors": "on",
"noEmptyObjectKeys": "on",
"noExcessiveNestedCallbacks": "on",
"noExcessiveSelectorClasses": "on",
"noFloatingPromises": "on",
"noIdenticalTestTitle": "on",
"noImpliedEval": "on",
"noInlineStyles": "on",
"noJsxLeakedDollar": "on",
"noJsxNamespace": "on",
"noLoopFunc": "on",
"noMisleadingReturnType": "on",
"noMisusedPromises": "on",
"noPlaywrightElementHandle": "on",
"noPlaywrightEval": "on",
"noPlaywrightForceOption": "on",
"noPlaywrightMissingAwait": "on",
"noPlaywrightNetworkidle": "on",
"noPlaywrightPagePause": "on",
"noPlaywrightUselessAwait": "on",
"noPlaywrightWaitForNavigation": "on",
"noPlaywrightWaitForSelector": "on",
"noPlaywrightWaitForTimeout": "on",
"noReactNativeDeepImports": "on",
"noReactNativeLiteralColors": "on",
"noReactNativeRawText": "on",
"noReactStringRefs": "on",
"noRestrictedDependencies": "on",
"noTopLevelLiterals": "on",
"noUndeclaredClasses": "on",
"noUnnecessaryTemplateExpression": "on",
"noUnsafePlusOperands": "on",
"noUntrustedLicenses": "on",
"noUnusedClasses": "on",
"noUselessTypeConversion": "on",
"noVueImportCompilerMacros": "on",
"noVueRefAsOperand": "on",
"noVueVOnNumberValues": "on",
"useArraySome": "on",
"useAwaitThenable": "on",
"useBaseline": "on",
"useConsistentTestIt": "on",
"useDisposables": "on",
"useDomNodeTextContent": "on",
"useDomQuerySelector": "on",
"useExhaustiveSwitchCases": "on",
"useExpect": "on",
"useExplicitReturnType": "on",
"useExplicitType": "on",
"useIframeSandbox": "on",
"useImportsFirst": "on",
"useIncludes": "on",
"useMathMinMax": "on",
"useNamedCaptureGroup": "on",
"useNullishCoalescing": "on",
"usePlaywrightValidDescribeCallback": "on",
"useQwikLoaderLocation": "on",
"useReactAsyncServerFunction": "on",
"useReactFunctionComponentDefinition": "on",
"useReactNativePlatformComponents": "on",
"useReduceTypeParameter": "on",
"useRegexpExec": "on",
"useRegexpTest": "on",
"useScopedStyles": "on",
"useSortedClasses": "on",
"useStringStartsEndsWith": "on",
"useSvelteRequireEachKey": "on",
"useTestHooksInOrder": "on",
"useTestHooksOnTop": "on",
"useThisInClassMethods": "on",
"useUnicodeRegex": "on",
"useVarsOnTop": "on",
"useVueConsistentDefinePropsDeclaration": "on",
"useVueNextTickPromise": "on",
"useVueValidVFor": "on"
},
"performance": {
"noAccumulatingSpread": "on",
"noAwaitInLoops": "on",
"noBarrelFile": "on",
"noDelete": "on",
"noDynamicNamespaceImportAccess": "on",
"noImgElement": "on",
"noJsxPropsBind": "on",
"noNamespaceImport": "on",
"noReExportAll": "on",
"noSyncScripts": "on",
"noUnwantedPolyfillio": "on",
"useGoogleFontPreconnect": "on",
"useSolidForComponent": "on",
"useTopLevelRegex": "on",
"useVueVapor": "on"
},
"security": {
"noBlankTarget": "on",
"noDangerouslySetInnerHtml": "on",
"noDangerouslySetInnerHtmlWithChildren": "on",
"noGlobalEval": "on",
"noScriptUrl": "on",
"noSecrets": "on"
},
"style": {
"noCommonJs": "on",
"noContinue": "on",
"noDefaultExport": "on",
"noDescendingSpecificity": "on",
"noDoneCallback": "on",
"noEnum": "on",
"noExcessiveClassesPerFile": "on",
"noExcessiveLinesPerFile": "on",
"noExportedImports": "on",
"noHeadElement": "on",
"noHexColors": "on",
"noImplicitBoolean": "on",
"noIncrementDecrement": "on",
"noInferrableTypes": "on",
"noJsxLiterals": "on",
"noMagicNumbers": "on",
"noMultiAssign": "on",
"noMultilineString": "on",
"noNamespace": "on",
"noNegationElse": "on",
"noNestedTernary": "on",
"noNonNullAssertion": "on",
"noParameterAssign": "on",
"noParameterProperties": "on",
"noProcessEnv": "on",
"noRestrictedGlobals": "on",
"noRestrictedImports": "on",
"noRestrictedTypes": "on",
"noRootType": "on",
"noShoutyConstants": "on",
"noSubstr": "on",
"noTernary": "on",
"noUnusedTemplateLiteral": "on",
"noUselessElse": "on",
"noValueAtRule": "on",
"noVueOptionsApi": "on",
"noYodaExpression": "on",
"useArrayLiterals": "on",
"useAsConstAssertion": "on",
"useAtIndex": "on",
"useBlockStatements": "on",
"useCollapsedElseIf": "on",
"useCollapsedIf": "on",
"useComponentExportOnlyModules": "on",
"useConsistentArrayType": "on",
"useConsistentArrowReturn": "on",
"useConsistentBuiltinInstantiation": "on",
"useConsistentCurlyBraces": "on",
"useConsistentEnumValueType": "on",
"useConsistentGraphqlDescriptions": "on",
"useConsistentMemberAccessibility": "on",
"useConsistentMethodSignatures": "on",
"useConsistentObjectDefinitions": "on",
"useConsistentTypeDefinitions": "on",
"useConst": "on",
"useDefaultParameterLast": "on",
"useDefaultSwitchClause": "on",
"useDeprecatedReason": "on",
"useDestructuring": "on",
"useEnumInitializers": "on",
"useErrorCause": "on",
"useExplicitLengthCheck": "on",
"useExponentiationOperator": "on",
"useExportsLast": "on",
"useExportType": "on",
"useFilenamingConvention": "on",
"useForOf": "on",
"useFragmentSyntax": "on",
"useGlobalThis": "on",
"useGraphqlNamingConvention": "on",
"useGroupedAccessorPairs": "on",
"useImportType": "on",
"useInputName": "on",
"useLiteralEnumMembers": "on",
"useLoneExecutableDefinition": "on",
"useNamingConvention": "on",
"useNodeAssertStrict": "on",
"useNodejsImportProtocol": "on",
"useNumberNamespace": "on",
"useNumericSeparators": "on",
"useObjectSpread": "on",
"useReactFunctionComponents": "on",
"useReadonlyClassProperties": "on",
"useSelfClosingElements": "on",
"useShorthandAssign": "on",
"useShorthandFunctionType": "on",
"useSingleVarDeclarator": "on",
"useSpreadOverApply": "on",
"useSymbolDescription": "on",
"useTemplate": "on",
"useThrowNewError": "on",
"useThrowOnlyError": "on",
"useTrimStartEnd": "on",
"useUnifiedTypeSignatures": "on",
"useVueConsistentVBindStyle": "on",
"useVueConsistentVOnStyle": "on",
"useVueDefineMacrosOrder": "on",
"useVueHyphenatedAttributes": "on",
"useVueMultiWordComponentNames": "on"
},
"suspicious": {
"noAlert": "on",
"noApproximativeNumericConstant": "on",
"noArrayIndexKey": "on",
"noAssignInExpressions": "on",
"noAsyncPromiseExecutor": "on",
"noBiomeFirstException": "on",
"noBitwiseOperators": "on",
"noCatchAssign": "on",
"noClassAssign": "on",
"noCommentText": "on",
"noCompareNegZero": "on",
"noConfusingLabels": "on",
"noConfusingVoidType": "on",
"noConsole": "on",
"noConstantBinaryExpressions": "on",
"noConstEnum": "on",
"noControlCharactersInRegex": "on",
"noDebugger": "on",
"noDeprecatedImports": "on",
"noDeprecatedMediaType": "on",
"noDocumentCookie": "on",
"noDocumentImportInPage": "on",
"noDoubleEquals": "on",
"noDuplicateAtImportRules": "on",
"noDuplicateCase": "on",
"noDuplicateClassMembers": "on",
"noDuplicateCustomProperties": "on",
"noDuplicateDependencies": "on",
"noDuplicatedSpreadProps": "on",
"noDuplicateElseIf": "on",
"noDuplicateEnumValues": "on",
"noDuplicateFields": "on",
"noDuplicateFontNames": "on",
"noDuplicateGraphqlOperationName": "on",
"noDuplicateJsxProps": "on",
"noDuplicateObjectKeys": "on",
"noDuplicateParameters": "on",
"noDuplicateProperties": "on",
"noDuplicateSelectorsKeyframeBlock": "on",
"noDuplicateTestHooks": "on",
"noEmptyBlock": "on",
"noEmptyBlockStatements": "on",
"noEmptyInterface": "on",
"noEmptySource": "on",
"noEqualsToNull": "on",
"noEvolvingTypes": "on",
"noExplicitAny": "on",
"noExportsInTest": "on",
"noExtraNonNullAssertion": "on",
"noFallthroughSwitchClause": "on",
"noFocusedTests": "on",
"noForIn": "on",
"noFunctionAssign": "on",
"noGlobalAssign": "on",
"noGlobalIsFinite": "on",
"noGlobalIsNan": "on",
"noHeadImportInDocument": "on",
"noImplicitAnyLet": "on",
"noImportantInKeyframe": "on",
"noImportAssign": "on",
"noImportCycles": "on",
"noIrregularWhitespace": "on",
"noLabelVar": "on",
"noLeakedRender": "on",
"noMisleadingCharacterClass": "on",
"noMisleadingInstantiator": "on",
"noMisplacedAssertion": "on",
"noMisrefactoredShorthandAssign": "on",
"noNestedPromises": "on",
"noNonNullAssertedOptionalChain": "on",
"noOctalEscape": "on",
"noParametersOnlyUsedInRecursion": "on",
"noProto": "on",
"noPrototypeBuiltins": "on",
"noQuickfixBiome": "on",
"noReactForwardRef": "on",
"noReactSpecificProps": "on",
"noRedeclare": "on",
"noRedundantUseStrict": "on",
"noReturnAssign": "on",
"noSelfCompare": "on",
"noShadow": "on",
"noShadowRestrictedNames": "on",
"noShorthandPropertyOverrides": "on",
"noSkippedTests": "on",
"noSparseArray": "on",
"noSuspiciousSemicolonInJsx": "on",
"noTemplateCurlyInString": "on",
"noThenProperty": "on",
"noTsIgnore": "on",
"noUnassignedVariables": "on",
"noUndeclaredEnvVars": "on",
"noUnknownAtRules": "on",
"noUnknownAttribute": "on",
"noUnnecessaryConditions": "on",
"noUnsafeDeclarationMerging": "on",
"noUnsafeNegation": "on",
"noUnusedExpressions": "on",
"noUselessEscapeInString": "on",
"noUselessRegexBackrefs": "on",
"noVar": "on",
"noVueArrowFuncInWatch": "on",
"noWith": "on",
"useAdjacentOverloadSignatures": "on",
"useArraySortCompare": "on",
"useAwait": "on",
"useBiomeIgnoreFolder": "on",
"useDefaultSwitchClauseLast": "on",
"useDeprecatedDate": "on",
"useErrorMessage": "on",
"useGetterReturn": "on",
"useGoogleFontDisplay": "on",
"useGuardForIn": "on",
"useIsArray": "on",
"useIterableCallbackReturn": "on",
"useNamespaceKeyword": "on",
"useNumberToFixedDigitsArgument": "on",
"useRequiredScripts": "on",
"useStaticResponseMethods": "on",
"useStrictMode": "on"
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment