Skip to content

Commit

Permalink
jsdoc: add @ignore, @internal and @stable as definedTags
Browse files Browse the repository at this point in the history
This will be used to indicate the stability of JS methods, following the
introduction of the frontend stable interface policy: https://w.wiki/87wa

See https://www.mediawiki.org/wiki/Topic:Xrs17s867zgd9j7b
  • Loading branch information
MusikAnimal authored and edg2s committed Nov 13, 2023
1 parent 732cd55 commit 68561c5
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
10 changes: 10 additions & 0 deletions jsdoc.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,16 @@
},
"rules": {
"jsdoc/check-param-names": [ "warn", { "allowExtraTrailingParamDocs": true } ],
"jsdoc/check-tag-names": [
"warn",
{
"definedTags": [
"ignore",
"internal",
"stable"
]
}
],
"jsdoc/check-values": "off",
"jsdoc/empty-tags": "off",
"jsdoc/no-multi-asterisks": [ "error", { "allowWhitespace": true } ],
Expand Down
3 changes: 3 additions & 0 deletions test/fixtures/jsdoc/valid.js
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,9 @@
* line
* @yield {number} Multi-
* line
* @ignore
* @internal
* @stable
*/
APP.JSDocTags = function ( a, b ) {
return a || b;
Expand Down

0 comments on commit 68561c5

Please sign in to comment.