From 5718f10c37b049bd926dac8c5c1a4f032ba60606 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marius=20Lundga=CC=8Ard?= Date: Sat, 8 Oct 2022 10:48:30 +0200 Subject: [PATCH] fix: support tsdoc rules --- src/node/_core/config/types.ts | 3 +++ src/node/_tasks/dts/_extractTypes.ts | 28 ++++++++++++++-------------- 2 files changed, 17 insertions(+), 14 deletions(-) diff --git a/src/node/_core/config/types.ts b/src/node/_core/config/types.ts index ae829fa2..cfb47138 100644 --- a/src/node/_core/config/types.ts +++ b/src/node/_core/config/types.ts @@ -70,6 +70,9 @@ export interface PkgConfigOptions { 'ae-incompatible-release-tags'?: PkgRuleLevel 'ae-internal-missing-underscore'?: PkgRuleLevel 'ae-missing-release-tag'?: PkgRuleLevel + 'tsdoc-link-tag-unescaped-text'?: PkgRuleLevel + 'tsdoc-undefined-tag'?: PkgRuleLevel + 'tsdoc-unsupported-tag'?: PkgRuleLevel } } /** diff --git a/src/node/_tasks/dts/_extractTypes.ts b/src/node/_tasks/dts/_extractTypes.ts index 413c5a52..da300fa5 100644 --- a/src/node/_tasks/dts/_extractTypes.ts +++ b/src/node/_tasks/dts/_extractTypes.ts @@ -93,20 +93,20 @@ export async function _extractTypes(options: { addToApiReportFile: false, }, - // 'tsdoc-link-tag-unescaped-text': { - // logLevel: 'warning' as ExtractorLogLevel, - // addToApiReportFile: false - // }, - - // 'tsdoc-unsupported-tag': { - // logLevel: 'none' as ExtractorLogLevel, - // addToApiReportFile: false - // }, - - // 'tsdoc-undefined-tag': { - // logLevel: 'none' as ExtractorLogLevel, - // addToApiReportFile: false - // } + 'tsdoc-link-tag-unescaped-text': { + logLevel: _ruleToLogLevel('tsdoc-link-tag-unescaped-text', 'warning' as ExtractorLogLevel), + addToApiReportFile: false, + }, + + 'tsdoc-undefined-tag': { + logLevel: _ruleToLogLevel('tsdoc-undefined-tag', 'error' as ExtractorLogLevel), + addToApiReportFile: false, + }, + + 'tsdoc-unsupported-tag': { + logLevel: _ruleToLogLevel('tsdoc-unsupported-tag', 'none' as ExtractorLogLevel), + addToApiReportFile: false, + }, }, }