Skip to content

Decorators cause check-param-names to fail #915

@Zamiell

Description

@Zamiell

Expected behavior

/**
 * This is the description for my cool function.
 *
 * @param arg1 This is the number for my cool function.
 */
@MyDecorator
function foo(arg1: number) {}

This function should result in no errors.

Actual behavior

@param "arg1" does not match an existing function parameter.

Removing the decorator fixes the problem.

ESLint Config

"jsdoc/check-param-names": "warn"

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions