Skip to content

Commit bb71eee

Browse files
committed
fix(require-param): add missing JSDoc @param declaration for new function example
1 parent 5f1cdb1 commit bb71eee

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

docs/rules/require-param.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1265,6 +1265,16 @@ function quux ({
12651265
}
12661266
// "jsdoc/require-param": ["error"|"warn", {"interfaceExemptsParamsCheck":true}]
12671267
// Message: Missing JSDoc @param "root0" declaration.
1268+
1269+
/**
1270+
* @param foo
1271+
* @param baz
1272+
* @returns {number}
1273+
*/
1274+
function quux (foo, bar, baz) {
1275+
return foo + bar + baz;
1276+
}
1277+
// Message: Missing JSDoc @param "bar" declaration.
12681278
````
12691279

12701280

0 commit comments

Comments
 (0)