CLI:
Version: 1.9.3
Color support: true
Platform:
CPU Architecture: aarch64
OS: macos
Environment:
BIOME_LOG_PATH: unset
BIOME_LOG_PREFIX_NAME: unset
BIOME_CONFIG_PATH: unset
NO_COLOR: unset
TERM: "xterm-256color"
JS_RUNTIME_VERSION: "v22.12.0"
JS_RUNTIME_NAME: "node"
NODE_PACKAGE_MANAGER: "yarn/1.22.22"
Biome Configuration:
Status: Loaded successfully
Formatter disabled: false
Linter disabled: false
Organize imports disabled: true
VCS disabled: false
Linter:
JavaScript enabled: true
JSON enabled: true
CSS enabled: true
GraphQL enabled: false
Recommended: true
All: false
Enabled rules:
suspicious/noCatchAssign
suspicious/noUnsafeNegation
complexity/noMultipleSpacesInRegularExpressionLiterals
a11y/useValidLang
complexity/noUselessEmptyExport
suspicious/useNamespaceKeyword
suspicious/useValidTypeof
a11y/useValidAriaRole
correctness/noConstantCondition
a11y/useAriaActivedescendantWithTabindex
suspicious/noDuplicateParameters
suspicious/noDuplicateSelectorsKeyframeBlock
complexity/noEmptyTypeParameters
correctness/noConstructorReturn
style/useSelfClosingElements
correctness/noUnknownProperty
style/useTemplate
correctness/noUnusedLabels
complexity/noUselessTernary
correctness/noUnreachableSuper
suspicious/noCompareNegZero
correctness/noSwitchDeclarations
correctness/noUnsafeOptionalChaining
correctness/noConstAssign
suspicious/noControlCharactersInRegex
complexity/noUselessTypeConstraint
style/noVar
suspicious/noDoubleEquals
suspicious/noRedundantUseStrict
style/useLiteralEnumMembers
suspicious/noGlobalIsNan
suspicious/noEmptyInterface
suspicious/noMisleadingCharacterClass
correctness/noPrecisionLoss
suspicious/noRedeclare
correctness/noStringCaseMismatch
correctness/noSetterReturn
correctness/noInvalidConstructorSuper
suspicious/noDuplicateObjectKeys
suspicious/noUnsafeDeclarationMerging
correctness/noUnreachable
complexity/noUselessThisAlias
complexity/noThisInStatic
correctness/noInnerDeclarations
suspicious/noDuplicateCase
style/noParameterAssign
a11y/useValidAnchor
correctness/noSelfAssign
correctness/noInvalidBuiltinInstantiation
style/useShorthandFunctionType
suspicious/noShadowRestrictedNames
correctness/noInvalidDirectionInLinearGradient
suspicious/noImportantInKeyframe
complexity/noUselessLabel
complexity/noUselessCatch
correctness/noUnsafeFinally
a11y/useAriaPropsForRole
correctness/noNonoctalDecimalEscape
style/useEnumInitializers
a11y/useHtmlLang
complexity/noStaticOnlyClass
style/useWhile
style/noInferrableTypes
style/useNumericLiterals
complexity/useSimpleNumberKeys
suspicious/noImportAssign
a11y/noInteractiveElementToNoninteractiveRole
suspicious/noLabelVar
correctness/noUnnecessaryContinue
suspicious/noApproximativeNumericConstant
correctness/noGlobalObjectCalls
correctness/noUnknownUnit
a11y/useAltText
correctness/noEmptyCharacterClassInRegex
suspicious/noSparseArray
a11y/useIframeTitle
suspicious/noPrototypeBuiltins
correctness/noVoidElementsWithChildren
suspicious/noSuspiciousSemicolonInJsx
style/useAsConstAssertion
suspicious/noDebugger
style/useExportType
complexity/noUselessLoneBlockStatements
style/noArguments
a11y/useValidAriaValues
suspicious/noMisleadingInstantiator
suspicious/noCommentText
correctness/noUnmatchableAnbSelector
suspicious/noGlobalAssign
suspicious/noThenProperty
suspicious/noDuplicateJsxProps
suspicious/useGetterReturn
a11y/noPositiveTabindex
correctness/noEmptyPattern
security/noDangerouslySetInnerHtmlWithChildren
suspicious/noExtraNonNullAssertion
suspicious/noShorthandPropertyOverrides
correctness/noRenderReturnValue
security/noGlobalEval
style/useConst
a11y/noRedundantRoles
complexity/useFlatMap
correctness/useIsNan
suspicious/noGlobalIsFinite
suspicious/noSelfCompare
suspicious/noAsyncPromiseExecutor
suspicious/noDuplicateFontNames
style/useNodejsImportProtocol
a11y/noDistractingElements
complexity/noWith
suspicious/noDuplicateClassMembers
complexity/noExtraBooleanCast
a11y/useValidAriaProps
a11y/noRedundantAlt
correctness/noChildrenProp
correctness/noUnknownFunction
correctness/noInvalidPositionAtImportRule
suspicious/noConfusingLabels
suspicious/noConfusingVoidType
suspicious/noFocusedTests
a11y/noAriaUnsupportedElements
correctness/noInvalidGridAreas
correctness/noFlatMapIdentity
a11y/noBlankTarget
a11y/useHeadingContent
correctness/useValidForDirection
correctness/noVoidTypeReturn
correctness/noInvalidUseBeforeDeclaration
a11y/noAriaHiddenOnFocusable
a11y/useGenericFontNames
a11y/useAnchorContent
complexity/noUselessRename
complexity/noUselessConstructor
a11y/noAccessKey
style/useExponentiationOperator
suspicious/noExportsInTest
a11y/noNoninteractiveElementToInteractiveRole
style/noCommaOperator
suspicious/noDuplicateAtImportRules
suspicious/useIsArray
a11y/noHeaderScope
complexity/noUselessFragments
suspicious/noMisrefactoredShorthandAssign
suspicious/noEmptyBlock
correctness/noUnusedImports
suspicious/noClassAssign
suspicious/noFunctionAssign
noUnusedImports
Removing the last import from a file with no exports should be an unsafe fix or should add export {}
at the bottom.
Typescript files with no imports or exports are ambient and all their declarations become global which usually breaks something.
This can realistically happen when using interface merging, because interface merging doesn't need any export statement, which is what happened to me.
Pay now to fund the work behind this issue.
Get updates on progress being made.
Maintainer is rewarded once the issue is completed.
You're funding impactful open source efforts
You want to contribute to this effort
You want to get funding like this too