eslint-plugin-jsdoc 64.3.0 → 64.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -156,5 +156,5 @@
156
156
  "test-cov": "TIMING=1 c8 --reporter text pnpm run test-no-cov",
157
157
  "test-index": "pnpm run test-no-cov test/rules/index.js"
158
158
  },
159
- "version": "64.3.0"
159
+ "version": "64.3.1"
160
160
  }
@@ -4,6 +4,8 @@ import {
4
4
  createRequire,
5
5
  } from 'module';
6
6
 
7
+ let warned = false;
8
+
7
9
  /** @type {any} */
8
10
  let ts;
9
11
 
@@ -94,11 +96,15 @@ export default iterateJsdoc(({
94
96
  * @type {import('@typescript-eslint/utils').ParserServices}
95
97
  */ (context.sourceCode.parserServices);
96
98
 
97
- /* c8 ignore next 6 -- Guard */
99
+ /* c8 ignore next 10 -- Guard */
98
100
  if (!services || !services.program) {
99
- // Cannot proceed without type-aware linting enabled
100
- // eslint-disable-next-line no-console -- Feedback
101
- console.warn('⚠️ You must point ESLint to the `typescript-eslint` parser using `languageOptions`. See the documentation for `jsdoc/no-unnecessary-type-assertion`.');
101
+ if (!warned) {
102
+ // Cannot proceed without type-aware linting enabled
103
+ // eslint-disable-next-line no-console -- Feedback
104
+ console.warn('⚠️ You must point ESLint to the `typescript-eslint` parser using `languageOptions`. See the documentation for `jsdoc/no-unnecessary-type-assertion`.');
105
+ warned = true;
106
+ }
107
+
102
108
  return;
103
109
  }
104
110