使用什么 lint 配置来消除警告:无效的 JSDoc 标签名称
What lint configuration to use to eliminate the warning : Invalid JSDoc tag name
我正在使用 eslint 设置我的 node js 项目,但我不断收到以下警告:
现在在我的 .eslint.json 中,我找不到 rule/technique 来帮助忽略这些新标签和类型。我查看了以下文档:
https://eslint.org/docs/rules/
我假设你也在使用 https://github.com/gajus/eslint-plugin-jsdoc
如果是这样,那么您必须将此规则添加到您的 eslint 配置文件中:
"jsdoc/check-tag-names": ["error", { "definedTags": ["consumes", "produces", "route"] }],
以及您的文档中还有的任何自定义标签...
我正在使用 eslint 设置我的 node js 项目,但我不断收到以下警告:
现在在我的 .eslint.json 中,我找不到 rule/technique 来帮助忽略这些新标签和类型。我查看了以下文档: https://eslint.org/docs/rules/
我假设你也在使用 https://github.com/gajus/eslint-plugin-jsdoc
如果是这样,那么您必须将此规则添加到您的 eslint 配置文件中:
"jsdoc/check-tag-names": ["error", { "definedTags": ["consumes", "produces", "route"] }],
以及您的文档中还有的任何自定义标签...