← Back

jsdoc/require-param-name warning

Requires that all function parameters have names.

Examples

❌  Incorrect

/**
 * @param
 */
function quux1 (foo) {

}
// Message: There must be an identifier after @param type.

/**
 * @param {string}
 */
function quux2 (foo) {

}
// Message: There must be an identifier after @param tag.

✅  Correct

/**
 * @param foo
 */
function quux1 (foo) {

}

/**
 * @param {string} foo
 */
function quux2 (foo) {

}