Skip to content

Instantly share code, notes, and snippets.

@baturax
Last active January 16, 2026 05:22
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
{
"$schema": "https://biomejs.dev/schemas/2.3.11/schema.json",
"assist": {
"actions": {
"recommended": true,
"source": {
"organizeImports": "on",
"recommended": true,
"useSortedAttributes": "on",
"useSortedKeys": "on",
"useSortedProperties": "on"
}
},
"enabled": true
},
"css": {
"assist": {
"enabled": true
},
"formatter": {
"enabled": true,
"indentStyle": "tab",
"indentWidth": 2,
"lineEnding": "lf",
"lineWidth": 80,
"quoteStyle": "double"
},
"linter": {
"enabled": true
},
"parser": {
"allowWrongLineComments": true,
"cssModules": false,
"tailwindDirectives": true
}
},
"files": {
"includes": [
"**",
"!!**/dist"
]
},
"formatter": {
"attributePosition": "multiline",
"bracketSameLine": false,
"bracketSpacing": true,
"enabled": true,
"expand": "always",
"formatWithErrors": true,
"indentStyle": "tab",
"indentWidth": 2,
"lineEnding": "lf",
"lineWidth": 80,
"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",
"whitespaceSensitivity": "strict"
},
"linter": {
"enabled": true
},
"parser": {
"interpolation": true
}
},
"javascript": {
"assist": {
"enabled": true
},
"formatter": {
"arrowParentheses": "always",
"attributePosition": "multiline",
"bracketSameLine": false,
"bracketSpacing": true,
"enabled": true,
"expand": "always",
"indentStyle": "tab",
"indentWidth": 2,
"jsxQuoteStyle": "double",
"lineEnding": "lf",
"lineWidth": 80,
"operatorLinebreak": "after",
"quoteProperties": "asNeeded",
"quoteStyle": "double",
"semicolons": "always",
"trailingCommas": "all"
},
"jsxRuntime": "transparent",
"linter": {
"enabled": true
},
"parser": {
"gritMetavariables": false,
"jsxEverywhere": false,
"unsafeParameterDecoratorsEnabled": false
}
},
"json": {
"assist": {
"enabled": true
},
"formatter": {
"bracketSpacing": true,
"enabled": true,
"expand": "always",
"indentStyle": "tab",
"indentWidth": 2,
"lineEnding": "lf",
"lineWidth": 80,
"trailingCommas": "all"
},
"linter": {
"enabled": true
},
"parser": {
"allowComments": true,
"allowTrailingCommas": true
}
},
"linter": {
"enabled": true,
"rules": {
"a11y": {
"noAccessKey": "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",
"recommended": true,
"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",
"noEmptyTypeParameters": "on",
"noExcessiveCognitiveComplexity": "on",
"noExcessiveLinesPerFunction": "on",
"noExcessiveNestedTestSuites": "on",
"noExtraBooleanCast": "on",
"noFlatMapIdentity": "on",
"noForEach": "on",
"noImplicitCoercions": "on",
"noImportantStyles": "on",
"noStaticOnlyClass": "on",
"noThisInStatic": "on",
"noUselessCatch": "on",
"noUselessConstructor": "on",
"noUselessContinue": "on",
"noUselessEmptyExport": "on",
"noUselessEscapeInRegex": "on",
"noUselessFragments": "on",
"noUselessLabel": "on",
"noUselessLoneBlockStatements": "on",
"noUselessRename": "on",
"noUselessStringConcat": "on",
"noUselessStringRaw": "on",
"noUselessSwitchCase": "on",
"noUselessTernary": "on",
"noUselessThisAlias": "on",
"noUselessTypeConstraint": "on",
"noUselessUndefinedInitialization": "on",
"noVoid": "on",
"recommended": true,
"useArrowFunction": "on",
"useDateNow": "on",
"useFlatMap": "on",
"useIndexOf": "on",
"useLiteralKeys": "on",
"useNumericLiterals": "on",
"useOptionalChain": "on",
"useRegexLiterals": "on",
"useSimpleNumberKeys": "on",
"useSimplifiedLogicExpression": "on",
"useWhile": "on"
},
"correctness": {
"noChildrenProp": "on",
"noConstAssign": "on",
"noConstantCondition": "on",
"noConstantMathMinMaxClamp": "on",
"noConstructorReturn": "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",
"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",
"noUnsafeFinally": "on",
"noUnsafeOptionalChaining": "on",
"noUnusedFunctionParameters": "on",
"noUnusedImports": "on",
"noUnusedLabels": "on",
"noUnusedPrivateClassMembers": "on",
"noUnusedVariables": "on",
"noVoidElementsWithChildren": "on",
"noVoidTypeReturn": "on",
"recommended": true,
"useExhaustiveDependencies": "on",
"useGraphqlNamedOperations": "on",
"useHookAtTopLevel": "on",
"useImageSize": "on",
"useImportExtensions": "on",
"useIsNan": "on",
"useJsonImportAttributes": "on",
"useJsxKeyInIterable": "on",
"useParseIntRadix": "on",
"useQwikClasslist": "on",
"useSingleJsDocAsterisk": "on",
"useUniqueElementIds": "on",
"useValidForDirection": "on",
"useValidTypeof": "on",
"useYield": "on"
},
"nursery": {
"noAmbiguousAnchorText": "on",
"noBeforeInteractiveScriptOutsideDocument": "on",
"noContinue": "on",
"noDeprecatedImports": "on",
"noDuplicateDependencies": "on",
"noDuplicatedSpreadProps": "on",
"noEmptySource": "on",
"noEqualsToNull": "on",
"noFloatingPromises": "on",
"noForIn": "on",
"noImportCycles": "on",
"noIncrementDecrement": "on",
"noJsxLiterals": "on",
"noJsxPropsBind": "on",
"noLeakedRender": "on",
"noMisusedPromises": "on",
"noMultiAssign": "on",
"noMultiStr": "on",
"noNextAsyncClientComponent": "on",
"noParametersOnlyUsedInRecursion": "on",
"noProto": "on",
"noReactForwardRef": "on",
"noReturnAssign": "on",
"noScriptUrl": "on",
"noShadow": "on",
"noSyncScripts": "on",
"noTernary": "on",
"noUndeclaredEnvVars": "on",
"noUnknownAttribute": "on",
"noUnnecessaryConditions": "on",
"noUnresolvedImports": "on",
"noUnusedExpressions": "on",
"noUselessCatchBinding": "on",
"noUselessUndefined": "on",
"noVueDataObjectDeclaration": "on",
"noVueDuplicateKeys": "on",
"noVueReservedKeys": "on",
"noVueReservedProps": "on",
"noVueSetupPropsReactivityLoss": "on",
"noVueVIfWithVFor": "on",
"recommended": true,
"useArraySortCompare": "on",
"useAwaitThenable": "on",
"useConsistentArrowReturn": "on",
"useConsistentGraphqlDescriptions": "on",
"useDeprecatedDate": "on",
"useDestructuring": "on",
"useExhaustiveSwitchCases": "on",
"useExplicitType": "on",
"useFind": "on",
"useMaxParams": "on",
"useQwikMethodUsage": "on",
"useQwikValidLexicalScope": "on",
"useRegexpExec": "on",
"useRequiredScripts": "on",
"useSortedClasses": "on",
"useSpread": "on",
"useUniqueArgumentNames": "on",
"useUniqueFieldDefinitionNames": "on",
"useUniqueGraphqlOperationName": "on",
"useUniqueInputFieldNames": "on",
"useUniqueVariableNames": "on",
"useVueConsistentDefinePropsDeclaration": "on",
"useVueConsistentVBindStyle": "on",
"useVueConsistentVOnStyle": "on",
"useVueDefineMacrosOrder": "on",
"useVueHyphenatedAttributes": "on",
"useVueMultiWordComponentNames": "on",
"useVueValidTemplateRoot": "on",
"useVueValidVBind": "on",
"useVueValidVCloak": "on",
"useVueValidVElse": "on",
"useVueValidVElseIf": "on",
"useVueValidVHtml": "on",
"useVueValidVIf": "on",
"useVueValidVOn": "on",
"useVueValidVOnce": "on",
"useVueValidVPre": "on",
"useVueValidVText": "on",
"useVueVapor": "on",
"useVueVForKey": "on"
},
"performance": {
"noAccumulatingSpread": "on",
"noAwaitInLoops": "on",
"noBarrelFile": "on",
"noDelete": "on",
"noDynamicNamespaceImportAccess": "on",
"noImgElement": "on",
"noNamespaceImport": "on",
"noReExportAll": "on",
"noUnwantedPolyfillio": "on",
"recommended": true,
"useGoogleFontPreconnect": "on",
"useSolidForComponent": "on",
"useTopLevelRegex": "on"
},
"recommended": true,
"security": {
"noBlankTarget": "on",
"noDangerouslySetInnerHtml": "on",
"noDangerouslySetInnerHtmlWithChildren": "on",
"noGlobalEval": "on",
"noSecrets": "on",
"recommended": true
},
"style": {
"noCommonJs": "on",
"noDefaultExport": "on",
"noDescendingSpecificity": "on",
"noDoneCallback": "on",
"noEnum": "on",
"noExportedImports": "on",
"noHeadElement": "on",
"noImplicitBoolean": "on",
"noInferrableTypes": "on",
"noMagicNumbers": "on",
"noNamespace": "on",
"noNegationElse": "on",
"noNestedTernary": "on",
"noNonNullAssertion": "on",
"noParameterAssign": "on",
"noParameterProperties": "on",
"noProcessEnv": "on",
"noRestrictedGlobals": "on",
"noRestrictedImports": "on",
"noRestrictedTypes": "on",
"noShoutyConstants": "on",
"noSubstr": "on",
"noUnusedTemplateLiteral": "on",
"noUselessElse": "on",
"noValueAtRule": "on",
"noYodaExpression": "on",
"recommended": true,
"useArrayLiterals": "on",
"useAsConstAssertion": "on",
"useAtIndex": "on",
"useBlockStatements": "on",
"useCollapsedElseIf": "on",
"useCollapsedIf": "on",
"useComponentExportOnlyModules": "on",
"useConsistentArrayType": "on",
"useConsistentBuiltinInstantiation": "on",
"useConsistentCurlyBraces": "on",
"useConsistentMemberAccessibility": "on",
"useConsistentObjectDefinitions": "on",
"useConsistentTypeDefinitions": "on",
"useConst": "on",
"useDefaultParameterLast": "on",
"useDefaultSwitchClause": "on",
"useDeprecatedReason": "on",
"useEnumInitializers": "on",
"useExplicitLengthCheck": "on",
"useExponentiationOperator": "on",
"useExportsLast": "on",
"useExportType": "on",
"useFilenamingConvention": "on",
"useForOf": "on",
"useFragmentSyntax": "on",
"useGraphqlNamingConvention": "on",
"useGroupedAccessorPairs": "on",
"useImportType": "on",
"useLiteralEnumMembers": "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",
"useSymbolDescription": "on",
"useTemplate": "on",
"useThrowNewError": "on",
"useThrowOnlyError": "on",
"useTrimStartEnd": "on",
"useUnifiedTypeSignatures": "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",
"noDocumentCookie": "on",
"noDocumentImportInPage": "on",
"noDoubleEquals": "on",
"noDuplicateAtImportRules": "on",
"noDuplicateCase": "on",
"noDuplicateClassMembers": "on",
"noDuplicateCustomProperties": "on",
"noDuplicateElseIf": "on",
"noDuplicateFields": "on",
"noDuplicateFontNames": "on",
"noDuplicateJsxProps": "on",
"noDuplicateObjectKeys": "on",
"noDuplicateParameters": "on",
"noDuplicateProperties": "on",
"noDuplicateSelectorsKeyframeBlock": "on",
"noDuplicateTestHooks": "on",
"noEmptyBlock": "on",
"noEmptyBlockStatements": "on",
"noEmptyInterface": "on",
"noEvolvingTypes": "on",
"noExplicitAny": "on",
"noExportsInTest": "on",
"noExtraNonNullAssertion": "on",
"noFallthroughSwitchClause": "on",
"noFocusedTests": "on",
"noFunctionAssign": "on",
"noGlobalAssign": "on",
"noGlobalIsFinite": "on",
"noGlobalIsNan": "on",
"noHeadImportInDocument": "on",
"noImplicitAnyLet": "on",
"noImportAssign": "on",
"noImportantInKeyframe": "on",
"noIrregularWhitespace": "on",
"noLabelVar": "on",
"noMisleadingCharacterClass": "on",
"noMisleadingInstantiator": "on",
"noMisplacedAssertion": "on",
"noMisrefactoredShorthandAssign": "on",
"noNonNullAssertedOptionalChain": "on",
"noOctalEscape": "on",
"noPrototypeBuiltins": "on",
"noQuickfixBiome": "on",
"noReactSpecificProps": "on",
"noRedeclare": "on",
"noRedundantUseStrict": "on",
"noSelfCompare": "on",
"noShadowRestrictedNames": "on",
"noShorthandPropertyOverrides": "on",
"noSkippedTests": "on",
"noSparseArray": "on",
"noSuspiciousSemicolonInJsx": "on",
"noTemplateCurlyInString": "on",
"noThenProperty": "on",
"noTsIgnore": "on",
"noUnassignedVariables": "on",
"noUnknownAtRules": "on",
"noUnsafeDeclarationMerging": "on",
"noUnsafeNegation": "on",
"noUselessEscapeInString": "on",
"noUselessRegexBackrefs": "on",
"noVar": "on",
"noWith": "on",
"recommended": true,
"useAdjacentOverloadSignatures": "on",
"useAwait": "on",
"useBiomeIgnoreFolder": "on",
"useDefaultSwitchClauseLast": "on",
"useErrorMessage": "on",
"useGetterReturn": "on",
"useGoogleFontDisplay": "on",
"useGuardForIn": "on",
"useIsArray": "on",
"useIterableCallbackReturn": "on",
"useNamespaceKeyword": "on",
"useNumberToFixedDigitsArgument": "on",
"useStaticResponseMethods": "on",
"useStrictMode": "on"
}
}
},
"vcs": {
"clientKind": "git",
"enabled": true,
"useIgnoreFile": true
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment