require-throws-type
September 13, 2025 ยท View on GitHub
require-throws-type
Requires a type on the @throws tag.
| Context | everywhere |
| Tags | throws |
| Recommended | true |
| Settings | |
| Options |
Failing examples
The following patterns are considered problems:
/**
* @throws
*/
// Message: @throws should have a type
Passing examples
The following patterns are not considered problems:
/**
* @throws {SomeType}
*/