npm / eslint-plugin-jsdoc
eslint-plugin-jsdoc
What changed in eslint-plugin-jsdoc 23 to 65, from its official release notes, upgrade guides and advisories. Sources checked 2026-11-30.
54 breaking62 new APIs and options3 performance11 behavior and defaults2 tooling120 fixes and other
See which of these apply to your code, ranked, in your agent:
npx @unstale/cli initeslint-plugin-jsdoc 6574 changes
Breaking changes 7
These configs now have their own names.
Only @typedef itself is exempt; other name-defining tags are no longer exempt.
The require-jsdoc and convert-to-jsdoc-comments rules throw a clear error when a comment is included in the contexts setting.
With publicOnly, the rule now checks members of anonymous default exports and exported object literals.
The rule no longer fixes comments that contain the closing delimiter.
Disallows extra properties in rule options.
Forbids a missing space between the asterisk prefix and content; set allowNoSpaceAfterAsterisk: true to restore the old behavior.
New APIs and options 14
Adds flat/all configs.
Adds a fix option to remove the tag or change it to @type.
Adds a dependencies option.
Adds a devDependencies option.
Adds a peerDependencies option.
Adds a publicOnly option.
Adds a publicOnly option.
Adds a fixer for missing parameter names.
Adds the useObjectTypeForDestructuredRoots option.
Adds a publicOnly option.
Adds the fixTypeChangingCasts option to no-unnecessary-type-assertion.
Adds the ignoreEmptyLines option to check-alignment.
Adds the enableFixer option to replace Closure-style optional types.
Allows -any within the tags array to apply alignment, or lack thereof, to all tags.
Performance 2
Skips collecting defined types for blocks with no types, improving performance.
The no-undefined-types and require-returns-check rules parse a file's JSDoc blocks only once, improving performance.
Behavior and default changes 1
Matching @prop descriptions are moved onto properties.
Fixes and other changes 50
Reordering tags that start on the opening line now keeps the JSDoc block valid.
The config name type now includes the flat/all configs.
The helper no longer changes the shared config.
Removing a type that spans lines now preserves the name and description.
Names exported before their declaration are now treated as exported when publicOnly is enabled.
Now reports a throw in a try block that has only a finally.
Now reports a throw in a function called where it is defined.
A fixer removing a tag on its line now preserves the closing delimiter.
When a type fixer moves the name up to the tag line, it now preserves the description.
No longer asks developers to document computed keys of destructured parameters.
Adds the period to the description’s own line when checking for a complete sentence.
No longer asks developers to document computed keys of destructured parameters.
Names the destructured parameter in messages about its root.
Lets "always" settle on the final tag with the default endLines.
Fixes adding missing tags after a line that also holds the closing delimiter.
Fixes adding missing tags after the opening line when the first tag is on that line.
Separates leading slashes from generated stars when converting to JSDoc comments.
The sort-tags rule no longer breaks the block when the first tag is on the opening line.
Accepts a non-ASCII uppercase letter at the start of a description by default.
The rule adds missing @param tags only once per fix, avoiding duplicate additions.
The rule no longer turns optional or readonly function properties into method signatures.
The rule preserves
?when converting between function properties and method signatures.No longer throws on call signatures inside object fields, parameters, or return types, and keeps the type when fixing.
The plugin now handles typed computed properties.
Only @typedef names are used as aliases for import() types.
The check-param-names, require-jsdoc, and convert-to-jsdoc-comments rules no longer throw on contexts entries they cannot handle.
Widen literal types on let and var declarations when checking for unnecessary type assertions.
The rule treats type parameters of function types as defined anywhere within the function type.
The rule no longer exits early when TypeScript is found.
Supports string any contexts and contexts without comment.
Supports string any contexts and contexts without comment.
Counts template names used as indexed-access indexes, so the rule recognizes those uses.
Counts template names used in other templates' constraints and defaults, so the rule recognizes those uses.
The rule no longer re-escapes existing import names and uses a valid identifier for default imports.
The check-template-names, no-undefined-types, and require-template rules allow spaces around the = of a @template default.
The rule now keeps a hashbang on the first line when adding @import.
Only treats @public, @private, and @protected as redundant on class members with typed.
The rule no longer strips @default from getters and setters.
The rule now predefines global types from TypeScript's standard library, avoiding reports that those types are undefined.
Keeps description text when maxBlockLines removes excess blank lines.
Added lines use CRLF when the source uses CRLF.
Uses CRLF for added lines when the source uses CRLF.
Recognizes export import aliases declared in a same-file namespace.
Recognizes enums, enum members, and values declared in a same-file namespace.
When reordering params, the fixer moves the closing delimiter to its own line.
Lines added by fixers use CRLF when the source uses CRLF.
New tags are added after the last line of the previous tag, and one-line blocks remain valid.
Avoids resetting section indentation when inline tags are present.
Handles optional types on all tags and across several lines.
Reports opening-line indentation on that line.
eslint-plugin-jsdoc 6434 changes
Breaking changes 2
CJS exports are dropped; the package is ESM only.
Requires Node ^22.22.2 or >=24.15.0.
New APIs and options 3
Adds a rule mirroring typescript-eslint's ban-ts-comments rule.
Adds the preferConstToLiteralTuples option to the rule.
Adds a rule for checking @type assertions.
Performance 1
Only tries TypeScript when the rule is enabled, avoiding unnecessary TypeScript checks.
Behavior and default changes 2
Adds LibreJS tag support to the rule.
The rule now provides an order fixer and suggestions, helping developers correct parameter-name ordering issues.
Fixes and other changes 26
[@link] targets now check properties within export class declarations.
The optional TypeScript peer dependency is set to any, undoing a breaking change.
TypeScript is specified as an optional peer dependency, so it is not required for users who do not need it.
The rule merges stacked line comments into a single JSDoc block.
Recognizes class members from the class's own JSDoc when checking for undefined types.
Keys positions by file to avoid positions being shared across files.
Drops suggestions.
Recognizes sibling class members from a property's JSDoc.
Avoids treating object annotations that clarify method argument types as redundant.
Handles array literal annotations with literal or union-of-literals element types that narrow the element type.
The rule no longer flags array-to-tuple assertions.
Avoids crashing when the rule encounters custom languages.
Handles the "any" context and avoids adding an extra line break when multiline text is already present.
Strips initial line breaks when text is present, whether or not it includes tags.
The rule's fixer now handles redundant const.
The rule now handles generics.
The rule now handles parenthesized expressions.
The rule now skips interpolated template literals.
The rule now skips mismatched nested casts.
The rule now provides an autofixer for unnecessary type assertions.
The rule now allows unknown casts.
The rule better supports assertions involving arrays and objects.
The rule no longer flags assertions on any.
The rule no longer flags placeholder unions.
Avoids multiple warnings when typescript-eslint is not referenced.
Resumes support for CommonJS via require(esm).
eslint-plugin-jsdoc 6321 changes
Breaking changes 2
Node 20 is no longer supported.
The rule no longer skips constructors.
New APIs and options 2
Adds the wrapBareUrls option to normalize-see-links.
Adds the normalize-see-links rule.
Fixes and other changes 17
Missing tsdoc configs were added.
The fixer now supports 1-line JSDoc blocks.
The rule minimally escapes link targets instead of applying encodeURI.
Autofix now handles delimiter-colliding labels via an escape round-trip.
The rule now ignores Markdown code spans.
Fixes CJS builds, improving use of the package in CommonJS environments.
Skips overloads when searching for method comment blocks, fixing comment detection.
Allows scoped packages in declaration references.
The check-template-names, require-template, and valid-types rules keep commas inside @template default values.
Detects template usage in @augments, @extends, and @implements types.
Predefines Iterable and Iterator types so no-undefined-types no longer treats them as undefined.
Frees comments after each file, preventing them from being retained across files.
The rule now checks descendant scopes for variables, fixing incorrect undefined-type reports.
The tsModule check can now catch multiple modules.
The rule now treats TypeScript module variables as defined.
Typedef returns that may be void are now allowed.
Preserves start and ending delimiters to avoid errors with single-line tags.
eslint-plugin-jsdoc 6222 changes
Breaking changes 2
The rule now errors if a user blocks @property.
Node.js ^20.19.0, ^22.13.0, or >=24 is now required.
New APIs and options 5
Adds a recommended TSDoc ruleset for configuring eslint-plugin-jsdoc.
Adds the startLinesWithNoTags option to tag-lines.
Adds the boolean option trailingPunctuationMultilineOnly to support trailing punctuation only on multiline types.
Adds the objectTypeBracketSpacing option to control bracket spacing for object types.
The jsdoccomment setting is now available to control comment finding for invoked expressions.
Behavior and default changes 4
The rule now allows Typedoc include and includeCode, TSDoc inheritDoc and inheritdoc, and label as inline tags, and adds TSDoc and Typedoc tags.
Inline inheritDoc, inheritdoc, include, includeCode, and label tags no longer trigger the rule.
The rule now allows Typedoc include and includeCode, and TSDoc inheritDoc, inheritdoc, and label as inline tags.
The rule supports strict validation for TypeScript namespaces.
Tooling 1
eslint-plugin-jsdoc supports ESLint 10, allowing developers to use the plugin with that ESLint version.
Fixes and other changes 10
The valid-types rule now allows required default names.
The rule now only fires on TSPropertySignature when it is with TSFunctionNode.
The rule now checks arrow function properties in interfaces (TSPropertySignature).
The rule now ensures template tags are defined.
The rule no longer treats infer type identifiers as undefined.
The config no longer applies deprecated rules, avoiding ESLint warnings.
The config no longer applies deprecated rules, avoiding ESLint warnings.
The valid-types rule allows numeric properties in jsdoc mode.
Stops treating type parameter names as unknown template names.
Treats infer statement types as defined.
eslint-plugin-jsdoc 6127 changes
Breaking changes 2
The rule no longer treats a synchronous throw as a rejection.
Changes the
stringQuotesdefault todouble; set it tosingleto restore the old behavior.
New APIs and options 11
Adds checkAllFunctionExpressions to require-jsdoc, forcing checks of FunctionExpressions regardless of context.
Adds the require-rejects rule.
Adds the allowIndentedSections option.
Adds tagExceptions to allow additional lines per tag.
Adds type-formatting options for spacing around functions and classes and for method quotes.
Adds an option to configure spacing for tuples and generics.
Adds an option to configure spacing after colons in key-value pairs and object fields.
Adds an option to configure spacing after keys in key-value pairs and object fields.
Adds an option to configure spacing after optional markers in key-value pairs and object fields.
Adds an option to configure spacing after variadic markers in key-value pairs and object fields.
Adds an option to configure spacing for type parameters.
Behavior and default changes 1
The check-tag-names, require-template, and check-template-names rules treat typeParam as a non-preferred alias for template.
Fixes and other changes 13
Allows separate typedefs when checking property names.
The rule’s error message now reflects the proper tag name.
When interfaceExemptsParamsCheck is true, structures with interfaces no longer trigger require-param.
The rule no longer reformats spacing after a delimiter.
The rule now treats parameter names as defined, avoiding false reports for parameter types.
Fixing a missing parent now places it between the child and grandparent.
The rule now checks object-based types or typings when identifying imports as dependencies.
A CJS version is now provided, fixing the reported issue for CommonJS users.
The rule now considers module-scope variables as defined.
The rule now handles resolve.exports errors.
The rule now checks within exports for types.
Made to-valid-identifier a dependency so it is available where the plugin requires it.
Ensures the import is a valid identifier, fixing the rule’s handling of invalid identifiers.
eslint-plugin-jsdoc 601 changes
Breaking changes 1
The rule name changes from required-tags to require-tags to be consistent with other rules; update rule configuration accordingly.
eslint-plugin-jsdoc 595 changes
Breaking changes 1
Removes the exemptedBy option from require-yields-check; it should not be needed.
New APIs and options 3
Adds the require-next-description rule.
Adds the require-throws-decription rule.
Adds the require-yields-description rule.
Fixes and other changes 1
Corrects fixable false positives.
eslint-plugin-jsdoc 584 changes
Breaking changes 1
Adds a rule for rejecting function types; the new rule is included in recommended configs.
New APIs and options 2
Adds the preferTypes option to extraRuleDefinitions.
Adds a rule for rejecting any types; the new rule is included in recommended configs.
Fixes and other changes 1
Fixes Markdown escaping for tags in TypeScript descriptions.
eslint-plugin-jsdoc 576 changes
Breaking changes 4
Adds a rule requiring types for throws tags and includes it in recommended and required configs.
Adds a rule requiring types for yields tags and includes it in recommended and required configs.
Removes throws from structuredTags output in favor of the new recommended rule requiring types for the tag.
Removes yields from structuredTags output in favor of the new recommended rule requiring types for the tag.
New APIs and options 2
Adds the extraRuleDefinitions.forbid option to the jsdoc function.
Adds a rule requiring types for next tags and includes it in recommended and required configs.
eslint-plugin-jsdoc 561 changes
New APIs and options 1
CJS exports were added, and export paths changed; the notes say this should work without requiring changes.
eslint-plugin-jsdoc 551 changes
New APIs and options 1
A named jsdoc function is exported to build configurations, for example with jsdoc({config: 'flat/recommended'}).
eslint-plugin-jsdoc 531 changes
Breaking changes 1
The package exports changed as part of the move to tsdown to provide proper types.
eslint-plugin-jsdoc 521 changes
Breaking changes 1
Regular expressions use the v flag instead of the u flag by default; the v flag also matches emojis for sentence termination.
eslint-plugin-jsdoc 511 changes
Breaking changes 1
Node.js 20.11.0 or later is now required to use eslint-plugin-jsdoc.
eslint-plugin-jsdoc 501 changes
Breaking changes 1
Removed from the recommended configuration; selectively enable the rule for it to apply.
eslint-plugin-jsdoc 491 changes
Breaking changes 1
Adds the lines-before-block rule and includes it in the recommended configuration.
eslint-plugin-jsdoc 483 changes
Breaking changes 2
The package switches to native ESM, changing how developers import and use it.
Node 18 is required to use this release.
New APIs and options 1
The package adds exports, defining its supported entry points.
eslint-plugin-jsdoc 471 changes
Tooling 1
TypeScript types are exposed for the index file.
eslint-plugin-jsdoc 461 changes
Breaking changes 1
The no-defaults rule is on by default and removes default values; disable the rule if you want to retain them.
eslint-plugin-jsdoc 452 changes
New APIs and options 1
Recommended TypeScript-flavor configurations were added for users to choose.
Behavior and default changes 1
TypeScript configurations now disable this rule because TypeScript itself checks for undefined types.
eslint-plugin-jsdoc 391 changes
Breaking changes 1
Node 12 is dropped from the package engines.
eslint-plugin-jsdoc 382 changes
Breaking changes 1
Regular expressions now need to account for trailing whitespace; the default allows trailing whitespace but checks for it.
New APIs and options 1
Adds the dropEndLines option to tag-lines.
eslint-plugin-jsdoc 372 changes
Breaking changes 2
The plugin supports ESLint 8.x and requires ESLint ^7.0.0 or ^8.0.0.
This rule must be disabled for this release; the notes say it may be restored later.
eslint-plugin-jsdoc 361 changes
Breaking changes 1
Node.js ^12.20, ^14.13, or 16+ is now required for exports pattern support.
eslint-plugin-jsdoc 351 changes
Breaking changes 1
The rule is enabled by default, so noZeroLineText and noFinalLineText apply by default.
eslint-plugin-jsdoc 341 changes
Breaking changes 1
The package now requires Node 12 or higher.
eslint-plugin-jsdoc 331 changes
Breaking changes 1
The getJSDocComment file functionality now uses the external @es-joy/jsdoccomment package; requiring the file may break.
eslint-plugin-jsdoc 311 changes
Fixes and other changes 1
Fixers now preserve original whitespace unless the rule is meant to fix it.
eslint-plugin-jsdoc 305 changes
Breaking changes 4
Drops this setting; use
structuredTagsto configure namepath checking instead.Changes the default of
allowEmptyNamepathstofalse, so tags that expect names according to the docs are reported when names are empty.Reports simultaneous invalid name and type errors.
Requires names for
eventandexternal, and forextendsin jsdoc mode; other tags were adjusted according to the docs.
New APIs and options 1
Adds a setting to control validation and requirements for type and namepath portions, and to add user-defined namepath-defining tags to defined types.
eslint-plugin-jsdoc 294 changes
Breaking changes 2
JSDuck support is removed, including unions that use / instead of |.
Spaces are now added between union items.
New APIs and options 2
TypeScript mode now supports intersections such as X & Y.
TypeScript mode now supports readonly.
eslint-plugin-jsdoc 284 changes
Breaking changes 2
Requires Node 10 or later.
Checks param for valid namepaths.
New APIs and options 1
Adds a permissive mode for type parsing.
Behavior and default changes 1
check-types, no-undefined-types, and valid-types use mode-aware type parsing.
eslint-plugin-jsdoc 272 changes
Breaking changes 1
Replace the checkProperties option with a tags configuration for property descriptions.
New APIs and options 1
Adds a tags option to set which tags follow hyphen-description rules, allowing property behavior to differ from param behavior.
eslint-plugin-jsdoc 261 changes
New APIs and options 1
Adds an option to control whether capitalization after newlines is assumed to indicate a bad sentence end; its new default is false.
eslint-plugin-jsdoc 2512 changes
Breaking changes 1
Checks and fixes destructured objects and arrays, including the root, and prevents adding
...anyfor rest properties.
New APIs and options 9
Adds the
checkRestPropertyoption.Adds the
checkTypesPatternoption.Adds the
autoIncrementBaseoption.Adds the
checkRestPropertyoption.Adds the
checkTypesPatternoption.Adds the
enableFixeroption.Adds the
enableRestElementFixeroption.Adds the
enableRootFixeroption.Adds the
unnamedRootBaseoption.
Behavior and default changes 1
Checks destructured objects and arrays, including the root, and handles renamed parameters, defaults, rest elements and properties, and type annotations.
Fixes and other changes 1
Allows checking
@argJSDoc parameter names when preferred.
eslint-plugin-jsdoc 242 changes
Breaking changes 2
The require-example rule option is replaced by checkConstructors.
Adds a global option for checking constructors, getters or setters, replacing avoidExampleOnConstructors for the require-example rule.
eslint-plugin-jsdoc 234 changes
Breaking changes 4
A defined exemptedBy array overrides the inheritdoc exemption; add inheritdoc to the array to retain that exemption.
A defined exemptedBy array overrides the inheritdoc exemption; add inheritdoc to the array to retain that exemption.
A defined exemptedBy array overrides the inheritdoc exemption; add inheritdoc to the array to retain that exemption.
A defined exemptedBy array overrides the inheritdoc exemption; add inheritdoc to the array to retain that exemption.