Skip to content

Latest commit

 

History

History
46 lines (34 loc) · 804 Bytes

File metadata and controls

46 lines (34 loc) · 804 Bytes

require-yields-type

Requires a type on the @yields tag.

Context everywhere
Tags yields
Recommended true
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}
 */