File tree Expand file tree Collapse file tree 3 files changed +23
-1
lines changed
Expand file tree Collapse file tree 3 files changed +23
-1
lines changed Original file line number Diff line number Diff line change @@ -2718,6 +2718,13 @@ function quux() {
27182718 */
27192719function quux () {
27202720
2721+ }
2722+
2723+ /**
2724+ * @see {@link foo }
2725+ */
2726+ function quux () {
2727+
27212728}
27222729````
27232730
Original file line number Diff line number Diff line change @@ -2,12 +2,17 @@ import _ from 'lodash';
22import { parse } from 'jsdoctypeparser' ;
33import iterateJsdoc from '../iterateJsdoc' ;
44
5+ /** @param {string } tag */
6+ const isLink = ( tag ) => {
7+ return / ^ ( @ l i n k | @ l i n k c o d e | @ l i n k p l a i n | @ t u t o r i a l ) / . test ( tag ) ;
8+ } ;
9+
510export default iterateJsdoc ( ( {
611 jsdoc,
712 report
813} ) => {
914 _ . forEach ( jsdoc . tags , ( tag ) => {
10- if ( tag . type ) {
15+ if ( tag . type && ! isLink ( tag . type ) ) {
1116 try {
1217 parse ( tag . type ) ;
1318 } catch ( error ) {
Original file line number Diff line number Diff line change @@ -45,6 +45,16 @@ export default {
4545 */
4646 function quux() {
4747
48+ }
49+ `
50+ } ,
51+ {
52+ code : `
53+ /**
54+ * @see {@link foo}
55+ */
56+ function quux() {
57+
4858 }
4959 `
5060 }
You can’t perform that action at this time.
0 commit comments