Environment information
Details
CLI:
Version: 2.4.7
Color support: true
Platform:
CPU Architecture: x86_64
OS: linux
Environment:
BIOME_LOG_PATH: unset
BIOME_LOG_PREFIX_NAME: unset
BIOME_LOG_LEVEL: unset
BIOME_LOG_KIND: unset
BIOME_CONFIG_PATH: unset
BIOME_THREADS: unset
BIOME_WATCHER_KIND: unset
BIOME_WATCHER_POLLING_INTERVAL: unset
NO_COLOR: unset
TERM: xterm-256color
JS_RUNTIME_VERSION: v24.14.0
JS_RUNTIME_NAME: node
NODE_PACKAGE_MANAGER: npm/11.11.0
Biome Configuration:
Status: Loaded successfully
Path: biome.jsonc
Formatter enabled: true
Linter enabled: true
Assist enabled: true
VCS enabled: true
HTML full support enabled: unset
Linter:
JavaScript enabled: unset
JSON enabled: unset
CSS enabled: unset
GraphQL enabled: unset
Recommended: unset
Enabled rules:
a11y/noAccessKey
a11y/noAriaHiddenOnFocusable
a11y/noAriaUnsupportedElements
a11y/noAutofocus
a11y/noDistractingElements
a11y/noHeaderScope
a11y/noInteractiveElementToNoninteractiveRole
a11y/noLabelWithoutControl
a11y/noNoninteractiveElementInteractions
a11y/noNoninteractiveElementToInteractiveRole
a11y/noNoninteractiveTabindex
a11y/noPositiveTabindex
a11y/noRedundantAlt
a11y/noRedundantRoles
a11y/noStaticElementInteractions
a11y/noSvgWithoutTitle
a11y/useAltText
a11y/useAnchorContent
a11y/useAriaActivedescendantWithTabindex
a11y/useAriaPropsForRole
a11y/useAriaPropsSupportedByRole
a11y/useButtonType
a11y/useFocusableInteractive
a11y/useGenericFontNames
a11y/useHeadingContent
a11y/useHtmlLang
a11y/useIframeTitle
a11y/useKeyWithClickEvents
a11y/useKeyWithMouseEvents
a11y/useMediaCaption
a11y/useSemanticElements
a11y/useValidAnchor
a11y/useValidAriaProps
a11y/useValidAriaRole
a11y/useValidAriaValues
a11y/useValidAutocomplete
a11y/useValidLang
complexity/noAdjacentSpacesInRegex
complexity/noArguments
complexity/noBannedTypes
complexity/noCommaOperator
complexity/noEmptyTypeParameters
complexity/noExcessiveNestedTestSuites
complexity/noExtraBooleanCast
complexity/noFlatMapIdentity
complexity/noImplicitCoercions
complexity/noImportantStyles
complexity/noStaticOnlyClass
complexity/noThisInStatic
complexity/noUselessCatch
complexity/noUselessCatchBinding
complexity/noUselessConstructor
complexity/noUselessContinue
complexity/noUselessEmptyExport
complexity/noUselessEscapeInRegex
complexity/noUselessFragments
complexity/noUselessLabel
complexity/noUselessLoneBlockStatements
complexity/noUselessRename
complexity/noUselessStringConcat
complexity/noUselessStringRaw
complexity/noUselessSwitchCase
complexity/noUselessTernary
complexity/noUselessThisAlias
complexity/noUselessTypeConstraint
complexity/noUselessUndefined
complexity/noUselessUndefinedInitialization
complexity/noVoid
complexity/useArrowFunction
complexity/useDateNow
complexity/useFlatMap
complexity/useIndexOf
complexity/useLiteralKeys
complexity/useMaxParams
complexity/useNumericLiterals
complexity/useOptionalChain
complexity/useRegexLiterals
complexity/useSimpleNumberKeys
complexity/useWhile
correctness/noChildrenProp
correctness/noConstAssign
correctness/noConstantCondition
correctness/noConstantMathMinMaxClamp
correctness/noConstructorReturn
correctness/noEmptyCharacterClassInRegex
correctness/noEmptyPattern
correctness/noGlobalObjectCalls
correctness/noInnerDeclarations
correctness/noInvalidBuiltinInstantiation
correctness/noInvalidConstructorSuper
correctness/noInvalidDirectionInLinearGradient
correctness/noInvalidGridAreas
correctness/noInvalidPositionAtImportRule
correctness/noInvalidUseBeforeDeclaration
correctness/noMissingVarFunction
correctness/noNestedComponentDefinitions
correctness/noNonoctalDecimalEscape
correctness/noPrecisionLoss
correctness/noProcessGlobal
correctness/noReactPropAssignments
correctness/noRenderReturnValue
correctness/noSelfAssign
correctness/noSetterReturn
correctness/noStringCaseMismatch
correctness/noSwitchDeclarations
correctness/noUnknownFunction
correctness/noUnknownMediaFeatureName
correctness/noUnknownProperty
correctness/noUnknownPseudoClass
correctness/noUnknownPseudoElement
correctness/noUnknownTypeSelector
correctness/noUnknownUnit
correctness/noUnmatchableAnbSelector
correctness/noUnreachable
correctness/noUnreachableSuper
correctness/noUnsafeFinally
correctness/noUnsafeOptionalChaining
correctness/noUnusedFunctionParameters
correctness/noUnusedImports
correctness/noUnusedLabels
correctness/noUnusedPrivateClassMembers
correctness/noUnusedVariables
correctness/noVoidElementsWithChildren
correctness/noVoidTypeReturn
correctness/useExhaustiveDependencies
correctness/useGraphqlNamedOperations
correctness/useHookAtTopLevel
correctness/useIsNan
correctness/useJsonImportAttributes
correctness/useJsxKeyInIterable
correctness/useParseIntRadix
correctness/useSingleJsDocAsterisk
correctness/useUniqueElementIds
correctness/useValidForDirection
correctness/useValidTypeof
correctness/useYield
nursery/noConditionalExpect
nursery/noDuplicatedSpreadProps
nursery/noEmptyObjectKeys
nursery/noFloatingClasses
nursery/noFloatingPromises
nursery/noForIn
nursery/noLeakedRender
nursery/noMisusedPromises
nursery/noMultiAssign
nursery/noMultiStr
nursery/noNestedPromises
nursery/noParametersOnlyUsedInRecursion
nursery/noProto
nursery/noRedundantDefaultExport
nursery/noReturnAssign
nursery/noScriptUrl
nursery/noShadow
nursery/noSyncScripts
nursery/noTopLevelLiterals
nursery/noUnknownAttribute
nursery/noUselessReturn
nursery/useArraySome
nursery/useArraySortCompare
nursery/useBaseline
nursery/useConsistentEnumValueType
nursery/useConsistentMethodSignatures
nursery/useErrorCause
nursery/useExhaustiveSwitchCases
nursery/useExpect
nursery/useImportsFirst
nursery/useNamedCaptureGroup
nursery/useNullishCoalescing
nursery/useRegexpExec
nursery/useSpread
nursery/useUnicodeRegex
performance/noAccumulatingSpread
performance/noAwaitInLoops
performance/noBarrelFile
performance/noDelete
performance/noDynamicNamespaceImportAccess
performance/noNamespaceImport
performance/noReExportAll
performance/useGoogleFontPreconnect
performance/useTopLevelRegex
security/noBlankTarget
security/noDangerouslySetInnerHtml
security/noDangerouslySetInnerHtmlWithChildren
security/noGlobalEval
style/noCommonJs
style/noDefaultExport
style/noDescendingSpecificity
style/noDoneCallback
style/noInferrableTypes
style/noJsxLiterals
style/noNamespace
style/noNegationElse
style/noNestedTernary
style/noNonNullAssertion
style/noParameterAssign
style/noProcessEnv
style/noRestrictedImports
style/noShoutyConstants
style/noSubstr
style/noUnusedTemplateLiteral
style/noUselessElse
style/noValueAtRule
style/noYodaExpression
style/useArrayLiterals
style/useAsConstAssertion
style/useAtIndex
style/useBlockStatements
style/useCollapsedElseIf
style/useCollapsedIf
style/useConsistentArrayType
style/useConsistentArrowReturn
style/useConsistentBuiltinInstantiation
style/useConsistentMemberAccessibility
style/useConsistentObjectDefinitions
style/useConsistentTypeDefinitions
style/useConst
style/useDefaultParameterLast
style/useDeprecatedReason
style/useEnumInitializers
style/useExplicitLengthCheck
style/useExponentiationOperator
style/useExportType
style/useExportsLast
style/useForOf
style/useGroupedAccessorPairs
style/useImportType
style/useLiteralEnumMembers
style/useNamingConvention
style/useNodeAssertStrict
style/useNumberNamespace
style/useNumericSeparators
style/useObjectSpread
style/useReactFunctionComponents
style/useReadonlyClassProperties
style/useSelfClosingElements
style/useShorthandAssign
style/useShorthandFunctionType
style/useSingleVarDeclarator
style/useSymbolDescription
style/useTemplate
style/useThrowNewError
style/useThrowOnlyError
style/useTrimStartEnd
style/useUnifiedTypeSignatures
suspicious/noAlert
suspicious/noApproximativeNumericConstant
suspicious/noArrayIndexKey
suspicious/noAssignInExpressions
suspicious/noAsyncPromiseExecutor
suspicious/noBiomeFirstException
suspicious/noBitwiseOperators
suspicious/noCatchAssign
suspicious/noClassAssign
suspicious/noCommentText
suspicious/noCompareNegZero
suspicious/noConfusingLabels
suspicious/noConfusingVoidType
suspicious/noConsole
suspicious/noConstEnum
suspicious/noConstantBinaryExpressions
suspicious/noControlCharactersInRegex
suspicious/noDebugger
suspicious/noDocumentCookie
suspicious/noDoubleEquals
suspicious/noDuplicateAtImportRules
suspicious/noDuplicateCase
suspicious/noDuplicateClassMembers
suspicious/noDuplicateCustomProperties
suspicious/noDuplicateDependencies
suspicious/noDuplicateElseIf
suspicious/noDuplicateFields
suspicious/noDuplicateFontNames
suspicious/noDuplicateJsxProps
suspicious/noDuplicateObjectKeys
suspicious/noDuplicateParameters
suspicious/noDuplicateProperties
suspicious/noDuplicateSelectorsKeyframeBlock
suspicious/noDuplicateTestHooks
suspicious/noEmptyBlock
suspicious/noEmptyBlockStatements
suspicious/noEmptySource
suspicious/noEvolvingTypes
suspicious/noExplicitAny
suspicious/noExportsInTest
suspicious/noExtraNonNullAssertion
suspicious/noFallthroughSwitchClause
suspicious/noFocusedTests
suspicious/noFunctionAssign
suspicious/noGlobalAssign
suspicious/noGlobalIsFinite
suspicious/noGlobalIsNan
suspicious/noImplicitAnyLet
suspicious/noImportAssign
suspicious/noImportCycles
suspicious/noImportantInKeyframe
suspicious/noIrregularWhitespace
suspicious/noLabelVar
suspicious/noMisleadingCharacterClass
suspicious/noMisleadingInstantiator
suspicious/noMisplacedAssertion
suspicious/noMisrefactoredShorthandAssign
suspicious/noNonNullAssertedOptionalChain
suspicious/noOctalEscape
suspicious/noPrototypeBuiltins
suspicious/noQuickfixBiome
suspicious/noReactForwardRef
suspicious/noRedeclare
suspicious/noSelfCompare
suspicious/noShadowRestrictedNames
suspicious/noShorthandPropertyOverrides
suspicious/noSkippedTests
suspicious/noSparseArray
suspicious/noSuspiciousSemicolonInJsx
suspicious/noTemplateCurlyInString
suspicious/noThenProperty
suspicious/noTsIgnore
suspicious/noUnassignedVariables
suspicious/noUnknownAtRules
suspicious/noUnsafeDeclarationMerging
suspicious/noUnsafeNegation
suspicious/noUnusedExpressions
suspicious/noUselessEscapeInString
suspicious/noUselessRegexBackrefs
suspicious/noVar
suspicious/noWith
suspicious/useAdjacentOverloadSignatures
suspicious/useAwait
suspicious/useBiomeIgnoreFolder
suspicious/useDefaultSwitchClauseLast
suspicious/useDeprecatedDate
suspicious/useErrorMessage
suspicious/useGetterReturn
suspicious/useGoogleFontDisplay
suspicious/useGuardForIn
suspicious/useIsArray
suspicious/useIterableCallbackReturn
suspicious/useNamespaceKeyword
suspicious/useNumberToFixedDigitsArgument
suspicious/useStaticResponseMethods
suspicious/useStrictMode
Rule name
nursery/noShadow
Playground link
https://biomejs.dev/playground/?indentStyle=space&lintRules=noShadow&code=ZgB1AG4AYwB0AGkAbwBuACAAZgBuACgAbwBwAHQAaQBvAG4AcwA6ACAAdQBuAGsAbgBvAHcAbgAsACAAYwBhAGwAbABiAGEAYwBrADoAIAAoAG8AcAB0AGkAbwBuAHMAOgAgAHUAbgBrAG4AbwB3AG4AKQAgAD0APgAgAHYAbwBpAGQAKQAgAHsACgAgACAACgB9AA%3D%3D
Expected result
Here we have two parameters with the same name. But the option parameter of the callback is only part of a type declaration. I think this should not be flagged.
Maybe this is somehow related to #7812.
Code of Conduct
Environment information
Details
Rule name
nursery/noShadow
Playground link
https://biomejs.dev/playground/?indentStyle=space&lintRules=noShadow&code=ZgB1AG4AYwB0AGkAbwBuACAAZgBuACgAbwBwAHQAaQBvAG4AcwA6ACAAdQBuAGsAbgBvAHcAbgAsACAAYwBhAGwAbABiAGEAYwBrADoAIAAoAG8AcAB0AGkAbwBuAHMAOgAgAHUAbgBrAG4AbwB3AG4AKQAgAD0APgAgAHYAbwBpAGQAKQAgAHsACgAgACAACgB9AA%3D%3D
Expected result
Here we have two parameters with the same name. But the
optionparameter of the callback is only part of a type declaration. I think this should not be flagged.Maybe this is somehow related to #7812.
Code of Conduct