使用什么 lint 配置来消除警告:无效的 JSDoc 标记名称

Nam*_*ain 2 javascript documentation node.js eslint

我正在使用 eslint 来设置我的 Node js 项目,但我不断收到以下警告:

在此输入图像描述

现在,在我的 .eslint.json 中,我无法找到规则/技术来帮助忽略这些新标签和类型。我查看了以下文档: https://eslint.org/docs/rules/

小智 5

我假设您也在使用https://github.com/gajus/eslint-plugin-jsdoc

如果是这样,那么您必须将此规则添加到您的 eslint 配置文件中:

"jsdoc/check-tag-names": ["error", { "definedTags": ["consumes", "produces", "route"] }],
Run Code Online (Sandbox Code Playgroud)

以及您的文档中还有任何自定义标签...