Skip to content

Some rules do not fail gracefully: ava/prefer-t-regex #346

Open
@spence-s

Description

@spence-s

This particular plugin causes eslint to crash with type errors for some rules if the syntax is not exactly right. Even if the document/file is parsable.

prefer-t-regex is the biggest complainer afaict.

Cannot read properties of undefined (reading 'type')

This is super noticeable when using the vscode xo extension as we alert on an eslint crash like that, so we alert on every key stroke until the plugin can lint correctly again.

Something like t.anyAssertion() causes the error.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions