Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🐛 Regression: Rule noUndeclaredVariables ignores javascript.global since 1.3.0 #555

Closed
1 task done
chrisgrieser opened this issue Oct 19, 2023 · 2 comments · Fixed by #559
Closed
1 task done
Assignees
Labels
A-Project Area: project S-Bug-confirmed Status: report has been confirmed as a valid bug

Comments

@chrisgrieser
Copy link

chrisgrieser commented Oct 19, 2023

Environment information

CLI:
  Version:                      1.3.0
  Color support:                true

Platform:
  CPU Architecture:             aarch64
  OS:                           macos

Environment:
  BIOME_LOG_DIR:                unset
  NO_COLOR:                     unset
  TERM:                         "xterm-256color"
  JS_RUNTIME_VERSION:           "v20.8.0"
  JS_RUNTIME_NAME:              "node"
  NODE_PACKAGE_MANAGER:         unset

Biome Configuration:
  Status:                       Loaded successfully
  Formatter disabled:           false
  Linter disabled:              false
  Organize imports disabled:    false
  VCS disabled:                 true

Workspace:
  Open Documents:               0

Discovering running Biome servers...

Incompatible Biome Server: ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

ℹ Rage discovered this running server using an incompatible version of Biome.

Server:
  Version:                      1.2.2

Server:
  Status:                       stopped

What happened?

Since upgrading to 1.3.0, the rule noUndeclaredVariables started ignoring the javascript.global config. This happens in the CLI (biome lint) as well as when using biome as LSP (biome lsp-proxy). Prior to 1.3.0, the javascript.global config was correctly respected by this rule.

Expected result

noUndeclaredVariables should respect javascript.global

Code of Conduct

  • I agree to follow Biome's Code of Conduct
@ematipico ematipico added A-Project Area: project S-Bug-confirmed Status: report has been confirmed as a valid bug labels Oct 20, 2023
@ematipico ematipico self-assigned this Oct 20, 2023
@ematipico
Copy link
Member

Yes that's a valid bug, I need to revert some code. Sorry for the inconvenience

@chrisgrieser
Copy link
Author

no worries. Thanks for the quick fix!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-Project Area: project S-Bug-confirmed Status: report has been confirmed as a valid bug
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants