File tree 3 files changed +28
-0
lines changed
3 files changed +28
-0
lines changed Original file line number Diff line number Diff line change @@ -6237,6 +6237,17 @@ export class SomeClass {
6237
6237
*/
6238
6238
constructor (private property : string ) {}
6239
6239
}
6240
+
6241
+ /**
6242
+ * Assign the project to an employee.
6243
+ *
6244
+ * @param {object} employee - The employee who is responsible for the project.
6245
+ * @param {string} employee.name - The name of the employee.
6246
+ * @param {string} employee.department - The employee's department.
6247
+ */
6248
+ function assign ({name, department}) {
6249
+ // ...
6250
+ }
6240
6251
` ` ` `
6241
6252
6242
6253
Original file line number Diff line number Diff line change @@ -21,6 +21,9 @@ export default iterateJsdoc(({
21
21
}
22
22
23
23
functionParameterNames . forEach ( ( functionParameterName ) => {
24
+ if ( [ '<ObjectPattern>' , '<ArrayPattern>' ] . includes ( functionParameterName ) ) {
25
+ return ;
26
+ }
24
27
if ( ! jsdocParameterNames . includes ( functionParameterName ) ) {
25
28
report ( `Missing JSDoc @${ utils . getPreferredTagName ( { tagName : 'param' } ) } "${ functionParameterName } " declaration.` ) ;
26
29
}
Original file line number Diff line number Diff line change @@ -788,6 +788,20 @@ export default {
788
788
parserOptions : {
789
789
sourceType : 'module'
790
790
}
791
+ } ,
792
+ {
793
+ code : `
794
+ /**
795
+ * Assign the project to an employee.
796
+ *
797
+ * @param {object} employee - The employee who is responsible for the project.
798
+ * @param {string} employee.name - The name of the employee.
799
+ * @param {string} employee.department - The employee's department.
800
+ */
801
+ function assign({name, department}) {
802
+ // ...
803
+ }
804
+ `
791
805
}
792
806
]
793
807
} ;
You can’t perform that action at this time.
0 commit comments