require-yields-type

October 8, 2025 ยท View on GitHub

require-yields-type

Requires a type on the @yields tag.

Contexteverywhere
Tagsyields
Recommendedtrue
Settings
Options

Failing examples

The following patterns are considered problems:

/**
 * @yields
 */
// Message: @yields should have a type

/**
 * @yield
 */
// Message: @yields should have a type

Passing examples

The following patterns are not considered problems:

/**
 * @yields {SomeType}
 */