eslint-plugin-ava icon indicating copy to clipboard operation
eslint-plugin-ava copied to clipboard

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

Open spence-s opened this issue 3 years ago • 1 comments

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.

spence-s avatar Aug 03 '22 15:08 spence-s

Related: https://github.com/avajs/eslint-plugin-ava/issues/347

ehmicky avatar Aug 15 '22 14:08 ehmicky