We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 24a8b51 commit b5a9168Copy full SHA for b5a9168
test/rules/assertions/requireParam.js
@@ -2668,6 +2668,35 @@ export default /** @type {import('../index.js').TestCases} */ ({
2668
}
2669
`,
2670
},
2671
+ {
2672
+ code: `
2673
+ /**
2674
+ * @param foo
2675
+ * @param baz
2676
+ * @returns {number}
2677
+ */
2678
+ function quux (foo, bar, baz) {
2679
+ return foo + bar + baz;
2680
+ }
2681
+ `,
2682
+ errors: [
2683
2684
+ line: 2,
2685
+ message: 'Missing JSDoc @param "bar" declaration.',
2686
+ },
2687
+ ],
2688
+ output: `
2689
2690
2691
+ * @param bar
2692
2693
2694
2695
2696
2697
2698
2699
2700
],
2701
valid: [
2702
{
0 commit comments