Skip to content

Commit 877f9b0

Browse files
committed
fix: support detection of typescript parser for flat config; fixes #989
1 parent b444026 commit 877f9b0

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

src/iterateJsdoc.js

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -872,11 +872,8 @@ const getSettings = (context) => {
872872

873873
// Many rules, e.g., `check-tag-names`
874874
mode: context.settings.jsdoc?.mode ??
875-
(context.parserPath?.includes('@typescript-eslint') ?
876-
// Todo: Waiting for TS parser to label itself:
877-
// https://github.com/eslint/eslint/pull/16944
878-
// https://github.com/typescript-eslint/typescript-eslint/issues/6541
879-
// || context.languageOptions?.parser?.meta?.name?.includes('typescript') ?
875+
(context.parserPath?.includes('@typescript-eslint') ||
876+
context.languageOptions?.parser?.meta?.name?.includes('typescript') ?
880877
'typescript' : 'jsdoc'),
881878

882879
// Many rules

0 commit comments

Comments
 (0)