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

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

Open
spence-s opened this issue Aug 3, 2022 · 1 comment
Open

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

spence-s opened this issue Aug 3, 2022 · 1 comment

Comments

@spence-s
Copy link
Contributor

spence-s commented Aug 3, 2022

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants