Skip to content

Commit

Permalink
fix: support detection of typescript parser for flat config; fixes ga…
Browse files Browse the repository at this point in the history
  • Loading branch information
brettz9 committed Mar 14, 2023
1 parent b444026 commit 8d06577
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/iterateJsdoc.js
Original file line number Diff line number Diff line change
Expand Up @@ -872,11 +872,8 @@ const getSettings = (context) => {

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

// Many rules
Expand Down

0 comments on commit 8d06577

Please sign in to comment.