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

noUndeclaredVariables doesn't recognise this in JSX in class component #2636

Closed
1 task done
printfn opened this issue Apr 29, 2024 · 1 comment · Fixed by #2870
Closed
1 task done

noUndeclaredVariables doesn't recognise this in JSX in class component #2636

printfn opened this issue Apr 29, 2024 · 1 comment · Fixed by #2870
Assignees
Labels
A-Linter Area: linter L-JavaScript Language: JavaScript and super languages S-Bug-confirmed Status: report has been confirmed as a valid bug

Comments

@printfn
Copy link
Contributor

printfn commented Apr 29, 2024

Environment information

CLI:
  Version:                      1.7.1
  Color support:                true

Platform:
  CPU Architecture:             x86_64
  OS:                           linux

Environment:
  BIOME_LOG_DIR:                unset
  NO_COLOR:                     unset
  TERM:                         "xterm-256color"
  JS_RUNTIME_VERSION:           "v20.11.1"
  JS_RUNTIME_NAME:              "node"
  NODE_PACKAGE_MANAGER:         "npm/10.2.4"

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

Workspace:
  Open Documents:               0

Rule name

lint/correctness/noUndeclaredVariables

Playground link

https://biomejs.dev/playground/?lintRules=all&code=aQBtAHAAbwByAHQAIAB7ACAAQwBvAG0AcABvAG4AZQBuAHQAIAB9ACAAZgByAG8AbQAgACcAcgBlAGEAYwB0ACcAOwAKAAoAZQB4AHAAbwByAHQAIABjAGwAYQBzAHMAIABNAHkAQwBvAG0AcABvAG4AZQBuAHQAIABlAHgAdABlAG4AZABzACAAQwBvAG0AcABvAG4AZQBuAHQAIAB7AAoAIAAgAHIAZQBuAGQAZQByACgAKQAgAHsACgAgACAAIAAgAHIAZQB0AHUAcgBuACAAPAB0AGgAaQBzAC4AZgBvAG8AIAAvAD4ACgAgACAAfQAKAH0A&typescript=false

Expected result

It should not error.

Code of Conduct

  • I agree to follow Biome's Code of Conduct
@printfn printfn changed the title noUndeclaredVariables doesn't recognise this in JSX noUndeclaredVariables doesn't recognise this in JSX in class component Apr 29, 2024
@Conaclos Conaclos added A-Linter Area: linter L-JavaScript Language: JavaScript and super languages S-Bug-confirmed Status: report has been confirmed as a valid bug labels Apr 29, 2024
@Conaclos
Copy link
Member

Reopening because I am reverting #2647 in #2651.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-Linter Area: linter L-JavaScript Language: JavaScript and super languages 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