Skip to content

require-jsdoc: constructor overload signatures incorrectly require JSDoc #1727

Closed

Description

@HolgerJeromin

I found a similar issue like #1688

cc @brettz9

Expected behavior

Because skipInterveningOverloadedDeclarations is true this should be fine IMO.

Actual behavior

error Missing JSDoc comment jsdoc/require-jsdoc

ESLint Config

eslint.config.mjs

'jsdoc/require-jsdoc': [
    'error',
    {
        publicOnly: true,
        require: {
            MethodDefinition: true,
        },
    },
]

ESLint sample

/** Foo here */
export class Foo {
    /** with string */
    constructor(arg1: string);
    /** with number */
    constructor(arg1: number);
  
    constructor(arg1: string | number) {   // <--- Missing JSDoc comment  jsdoc/require-jsdoc
        // implementation
    }
}

Environment

Thanks a lot for fixing these issues. Deleting many eslint-disable-next-line feels very good :)

Activity

  1. added a commit that references this issue on Jul 23, 2026
    6201cd6
  2. github-actions commented on Jul 23, 2026

    @github-actions

    🎉 This issue has been resolved in version 63.2.1 🎉

    The release is available on:

    Your semantic-release bot 📦🚀

  3. added a commit that references this issue on Jul 24, 2026
    9fd2f28
  4. HolgerJeromin commented on Jul 24, 2026

    @HolgerJeromin
    Author

    wow. That was quick
    Thanks a lot!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions