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

Skip to content

📎 Allow keys returned from an object to be listed as stable result #6386

@siketyan

Description

@siketyan

Discussed in #3501

Originally posted by ycmjason July 23, 2024
Thanks for the amazing work! Biome is definitely one of the best tools I've used! Great DX!

Regarding https://biomejs.dev/linter/rules/use-exhaustive-dependencies/#stable-results I suggest we also allow specifying keys that will be stable.

For example, when defining a hook like useBoolean, it would be nice if we can specify something like stableResults: ['toggle', 'setTrue', 'setFalse', 'setValue'].

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-LinterArea: linterD-ReactDomain: ReactL-JavaScriptLanguage: JavaScript and super languagesS-Help-wantedStatus: you're familiar with the code base and want to help the project

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions