Skip to content

Commit

Permalink
fix: support tsdoc rules
Browse files Browse the repository at this point in the history
  • Loading branch information
mariuslundgard committed Oct 8, 2022
1 parent 4c8b018 commit 5718f10
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 14 deletions.
3 changes: 3 additions & 0 deletions src/node/_core/config/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
}
/**
Expand Down
28 changes: 14 additions & 14 deletions src/node/_tasks/dts/_extractTypes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
},
},
}

Expand Down

0 comments on commit 5718f10

Please sign in to comment.