Skip to content

Wildcard rules shouldn't be allowed #645

Description

@morgante

If you write a rule like this it's going to bind to every AST node in every file before doing further filtering. This is, of course, pathologically expensive.

`$foo` where {
...
}

Example here: biomejs/biome#6210

There's no real use case for such a rule so we should disallow it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions