require-throws-type

September 13, 2025 ยท View on GitHub

require-throws-type

Requires a type on the @throws tag.

Contexteverywhere
Tagsthrows
Recommendedtrue
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}
 */