eslint-plugin-jsdoc 62.6.0 → 62.7.0

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.
@@ -2,7 +2,6 @@ declare const _default: {
2
2
  create(context: import("eslint").Rule.RuleContext): {};
3
3
  meta: {
4
4
  docs: {
5
- category: string;
6
5
  description: string;
7
6
  recommended: boolean;
8
7
  url: string;
@@ -708,6 +708,7 @@ const getUtils = (node, jsdoc, jsdocNode, settings, report, context, sc, iterati
708
708
 
709
709
  /* c8 ignore next -- Fallback to deprecated method */
710
710
  const {
711
+ // @ts-expect-error ESLint < 10
711
712
  sourceCode = context.getSourceCode()
712
713
  } = context;
713
714
  const utils = /** @type {Utils} */getBasicUtils(context, settings);
@@ -1860,6 +1861,7 @@ const iterateAllJsdocs = (iterator, ruleConfig, contexts, additiveCommentContext
1860
1861
  const callIterator = (context, node, jsdocNodes, state, lastCall) => {
1861
1862
  /* c8 ignore next -- Fallback to deprecated method */
1862
1863
  const {
1864
+ // @ts-expect-error ESLint < 10
1863
1865
  sourceCode = context.getSourceCode()
1864
1866
  } = context;
1865
1867
  const {
@@ -1926,6 +1928,7 @@ const iterateAllJsdocs = (iterator, ruleConfig, contexts, additiveCommentContext
1926
1928
  create(context) {
1927
1929
  /* c8 ignore next -- Fallback to deprecated method */
1928
1930
  const {
1931
+ // @ts-expect-error ESLint < 10
1929
1932
  sourceCode = context.getSourceCode()
1930
1933
  } = context;
1931
1934
  settings = getSettings(context);
@@ -1964,7 +1967,8 @@ const iterateAllJsdocs = (iterator, ruleConfig, contexts, additiveCommentContext
1964
1967
  commentNode)], /** @type {StateObject} */state);
1965
1968
  },
1966
1969
  'Program:exit'() {
1967
- const allComments = sourceCode.getAllComments();
1970
+ const allComments = /** @type {import('estree').Comment[]} */
1971
+ sourceCode.getAllComments();
1968
1972
  const untrackedJSdoc = allComments.filter(node => {
1969
1973
  return !trackedJsdocs.has(node);
1970
1974
  });
@@ -1989,6 +1993,7 @@ const checkFile = (iterator, ruleConfig) => {
1989
1993
  create(context) {
1990
1994
  /* c8 ignore next -- Fallback to deprecated method */
1991
1995
  const {
1996
+ // @ts-expect-error ESLint < 10
1992
1997
  sourceCode = context.getSourceCode()
1993
1998
  } = context;
1994
1999
  const settings = getSettings(context);
@@ -2081,6 +2086,7 @@ function iterateJsdoc(iterator, ruleConfig) {
2081
2086
 
2082
2087
  /* c8 ignore next -- Fallback to deprecated method */
2083
2088
  const {
2089
+ // @ts-expect-error ESLint < 10
2084
2090
  sourceCode = context.getSourceCode()
2085
2091
  } = context;
2086
2092
  const {