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

Add `prefer-t-throws` rule

Open Mesteery opened this issue 3 years ago • 3 comments

Fixes: https://github.com/avajs/eslint-plugin-ava/issues/156


IssueHunt Summary

Referenced issues

This pull request has been submitted to:


Mesteery avatar Feb 06 '22 01:02 Mesteery

AVA now has t.throws and t.throwsAsync. See the AVA docs.

sindresorhus avatar Feb 06 '22 04:02 sindresorhus

AVA now has t.throws and t.throwsAsync. See the AVA docs.

So should the rule be t-throws-async instead or should I add another rule?

Mesteery avatar Feb 06 '22 11:02 Mesteery

The name should be the what it is, but you need to also support the async method.

sindresorhus avatar Feb 06 '22 12:02 sindresorhus