@@ -824,27 +824,48 @@ export default /** @type {import('../index.js').TestCases} */ ({
824824 {
825825 code : `${ ALL_TYPESCRIPT_TAGS_COMMENT } \nfunction quux (foo) {}` ,
826826 errors : [
827- {
828- line : lineCount ( ALL_TYPESCRIPT_TAGS_COMMENT ) - 4 ,
829- message : 'Invalid JSDoc tag name "import".' ,
830- } ,
831- {
832- line : lineCount ( ALL_TYPESCRIPT_TAGS_COMMENT ) - 3 ,
833- message : 'Invalid JSDoc tag name "internal".' ,
834- } ,
835- {
836- line : lineCount ( ALL_TYPESCRIPT_TAGS_COMMENT ) - 2 ,
837- message : 'Invalid JSDoc tag name "overload".' ,
838- } ,
839- {
840- line : lineCount ( ALL_TYPESCRIPT_TAGS_COMMENT ) - 1 ,
841- message : 'Invalid JSDoc tag name "satisfies".' ,
842- } ,
843- {
844- line : lineCount ( ALL_TYPESCRIPT_TAGS_COMMENT ) ,
845- message : 'Invalid JSDoc tag name "template".' ,
846- } ,
847- ] ,
827+ // TSDoc
828+ 'alpha' ,
829+ 'beta' ,
830+ 'decorator' ,
831+ 'eventProperty' ,
832+ 'experimental' ,
833+ 'packageDocumentation' ,
834+ 'privateRemarks' ,
835+ 'remarks' ,
836+ 'sealed' ,
837+
838+ // TypeDoc
839+ 'category' ,
840+ 'categoryDescription' ,
841+ 'disableGroups' ,
842+ 'document' ,
843+ 'expand' ,
844+ 'expandType' ,
845+ 'group' ,
846+ 'groupDescription' ,
847+ 'hidden' ,
848+ 'hideCategories' ,
849+ 'hideGroups' ,
850+ 'inline' ,
851+ 'inlineType' ,
852+ 'mergeModuleWith' ,
853+ 'preventExpand' ,
854+ 'preventInline' ,
855+ 'primaryExport' ,
856+ 'showCategories' ,
857+ 'showGroups' ,
858+ 'sortStrategy' ,
859+ 'useDeclaredType' ,
860+
861+ // JSDoc/TypeScript
862+ 'import' , 'internal' , 'jsx' , 'overload' , 'satisfies' , 'template' ,
863+ ] . map ( ( tagName , idx , arr ) => {
864+ return {
865+ line : lineCount ( ALL_TYPESCRIPT_TAGS_COMMENT ) - arr . length + idx + 1 ,
866+ message : `Invalid JSDoc tag name "${ tagName } ".` ,
867+ } ;
868+ } ) ,
848869 settings : {
849870 jsdoc : {
850871 mode : 'jsdoc' ,
@@ -862,26 +883,21 @@ export default /** @type {import('../index.js').TestCases} */ ({
862883 } ,
863884 {
864885 code : `
865- /** @jsx h */
866886 /** @jsxFrag Fragment */
867887 /** @jsxImportSource preact */
868888 /** @jsxRuntime automatic */
869889 ` ,
870890 errors : [
871891 {
872892 line : 2 ,
873- message : 'Invalid JSDoc tag name "jsx".' ,
874- } ,
875- {
876- line : 3 ,
877893 message : 'Invalid JSDoc tag name "jsxFrag".' ,
878894 } ,
879895 {
880- line : 4 ,
896+ line : 3 ,
881897 message : 'Invalid JSDoc tag name "jsxImportSource".' ,
882898 } ,
883899 {
884- line : 5 ,
900+ line : 4 ,
885901 message : 'Invalid JSDoc tag name "jsxRuntime".' ,
886902 } ,
887903 ] ,
0 commit comments