Skip to content

The handle-done-callback rule cannot handle TypeScript this parameter #270

@raymondfeng

Description

@raymondfeng

The issue can be reproduced with the following TypeScript code:

before(async function setupApplication(this: Mocha.Context) {
    this.timeout(6000);
}

Please note this parameter is used.

The handle-done-callback rule marks it as a violation incorrectly.

It's also interesting to note that the function is async.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions