fix(eslint-plugin): [prefer-ts-expect-error] support block comments #2541
The support for prefer-ts-expect-error was restricted to only single line comments.
This PR looks to expand the support for prefer-ts-expect-error for block comments also.
The approach revolved around changing the regex for recognizing the valid cases of
Thanks for the PR, @yasarsid!
typescript-eslint is a 100% community driven project, and we are incredibly grateful that you are contributing to that community.
The core maintainers work on this in their personal time, so please understand that it may not be possible for them to review your work immediately.
@@ Coverage Diff @@ ## master #2541 +/- ## ========================================== + Coverage 92.81% 92.83% +0.01% ========================================== Files 290 290 Lines 9453 9516 +63 Branches 2647 2666 +19 ========================================== + Hits 8774 8834 +60 - Misses 322 323 +1 - Partials 357 359 +2
Flags with carried forward coverage won't be shown. Click here to find out more.