Closed spence-s closed 1 year ago
Updated for @sindresorhus preferences.
Note the added test cases that currently cause this rule to throw 😅.
I think you misunderstood me in https://github.com/avajs/eslint-plugin-ava/pull/350/files#r1072500429. I meant if (!lookup) { return false }
. Because the current check will allow undefined to continue in the function.
yes - ha did misunderstand, but good call!
fixes some of the prefer-t-regex issues. #346 #347