Thanks to visit codestin.com
Credit goes to github.com

Skip to content

πŸ› useExhaustiveDependencies fixes do not show up in quickfix menuΒ #748

@nicksama88

Description

@nicksama88

VS Code version

1.103.0

Extension version

3.1.2

Biome version

2.1.4

Operating system

  • Windows
  • macOS
  • Linux

Description

quick fixes for the useExhaustiveDependencies rule are not showing up in the VSCode quick fix menu. Only the "suppress rule" quick fixes are shown:

Image Image Image

Steps to reproduce

  1. create a react component with a useEffect
  2. put an unnecessary dependency in the dependency array
  3. note that the linter marks the useEffect has having an error with the dependency array
  4. open the quickfix menu
  5. note that there are no quick fixes for adding/removing dependencies, only fixes for disabling the rule

Expected behavior

quick fix menu should have options for adding/removing dependencies as needed

Does this issue occur when using the CLI directly?

No

Link to a minimal reproduction

https://github.com/nicksama88/biome-repro-1755113092873

Logs


Metadata

Metadata

Assignees

Labels

Bug confirmedReport has been confirmed as a valid bug

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions