CLI:
Version: 1.6.1
Color support: true
Platform:
CPU Architecture: aarch64
OS: macos
Environment:
BIOME_LOG_DIR: unset
NO_COLOR: unset
TERM: "xterm-256color"
JS_RUNTIME_VERSION: "v20.11.1"
JS_RUNTIME_NAME: "node"
NODE_PACKAGE_MANAGER: "pnpm/9.0.6"
Biome Configuration:
Status: Loaded successfully
Formatter disabled: false
Linter disabled: false
Organize imports disabled: false
VCS disabled: true
Linter:
Recommended: true
All: false
Rules: a11y/all = false
complexity/noBannedTypes = "off"
complexity/noForEach = "off"
complexity/noStaticOnlyClass = "off"
complexity/noUselessThisAlias = "off"
complexity/useFlatMap = "off"
complexity/useOptionalChain = "off"
correctness/noUndeclaredVariables = "error"
correctness/noUnusedImports = "error"
correctness/useExhaustiveDependencies = "off"
performance/noAccumulatingSpread = "off"
performance/noDelete = "off"
security/noDangerouslySetInnerHtml = "off"
style/noInferrableTypes = "off"
style/noNonNullAssertion = "off"
style/noParameterAssign = "off"
style/useEnumInitializers = "off"
style/useNodejsImportProtocol = "off"
style/useNumberNamespace = "off"
suspicious/noConfusingVoidType = "off"
suspicious/noConsoleLog = "error"
suspicious/noEmptyInterface = "off"
suspicious/noExplicitAny = "off"
suspicious/noShadowRestrictedNames = "off"
suspicious/noThenProperty = "off"
Workspace:
Open Documents: 0
noUndeclaredVariables
Expected biome to error for variable
Im the repro, I am using a variable (timezone) before initialisation (error I saw at runtime was "ReferenceError: Cannot access 'timezone' before initialization"). Maybe I am misunderstanding how the rule works, but I do remember that eslint would mark these kinds of mistakes
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