Requires that all @property
tags have names.
Context | everywhere |
Tags | property |
Aliases | prop |
Recommended | true |
The following patterns are considered problems:
/**
* @typedef {SomeType} SomeTypedef
* @property
*/
// Message: There must be an identifier after @property type.
/**
* @typedef {SomeType} SomeTypedef
* @property {string}
*/
// Message: There must be an identifier after @property tag.
/**
* @typedef {SomeType} SomeTypedef
* @property foo
*/
// Settings: {"jsdoc":{"tagNamePreference":{"property":false}}}
// Message: Unexpected tag `@property`
The following patterns are not considered problems:
/**
* @typedef {SomeType} SomeTypedef
* @property foo
*/
/**
* @typedef {SomeType} SomeTypedef
* @property {string} foo
*/
/**
* @namespace {SomeType} SomeName
* @property {string} foo
*/
/**
* @class
* @property {string} foo
*/