Requires that each @property
tag has a type value (within curly brackets).
Context | everywhere |
Tags | property |
Aliases | prop |
Recommended | true |
The following patterns are considered problems:
/**
* @typedef {SomeType} SomeTypedef
* @property foo
*/
// Message: Missing JSDoc @property "foo" type.
/**
* @typedef {SomeType} SomeTypedef
* @prop foo
*/
// Settings: {"jsdoc":{"tagNamePreference":{"property":"prop"}}}
// Message: Missing JSDoc @prop "foo" type.
/**
* @typedef {SomeType} SomeTypedef
* @property foo
*/
// Settings: {"jsdoc":{"tagNamePreference":{"property":false}}}
// Message: Unexpected tag `@property`
The following patterns are not considered problems:
/**
* @typedef {SomeType} SomeTypedef
*/
/**
* @typedef {SomeType} SomeTypedef
* @property {number} foo
*/
/**
* @namespace {SomeType} SomeName
* @property {number} foo
*/
/**
* @class
* @property {number} foo
*/