prismjs
View on npm →Issues by Rule
tjd/accurate-jsdoc tjd/no-redundant-jsdoc Issues by File
components/prism-core.js 1 issue@returns: RegExpExecArray | null → RegExpExecArray. JSDoc includes null/undefined but TypeScript infers the value is always present. Either the code guarantees a value, or add runtime checks.
components/prism-graphql.js 1 issue@returns: Token | undefined → Token. JSDoc includes null/undefined but TypeScript infers the value is always present. Either the code guarantees a value, or add runtime checks.
components/prism-javadoclike.js 1 issue@param 'callback': (pattern: {inside: {rest: undefined}}) => void → (pattern: { inside: { rest: undefined; }; }) => void. Types differ. Run with --fix to update JSDoc, or verify the intended type.
components/prism-js-templates.js 3 issues@returns: (string|Token)[] → any[]. JSDoc declares union but TypeScript infers array.
@param 'tokens': (Token|string)[] → any[]. JSDoc declares union but TypeScript infers array.
@param 'tokens': (Token | string)[] → any[]. JSDoc declares union but TypeScript infers array.
components/prism-kumir.js 1 issueJSDoc @type 'string' is redundant - TypeScript infers the same type
Analyzed: 2/3/2026