Skip to content

missing function expression name : naming / semantics #1311

@gkatsanos

Description

@gkatsanos

Assuming a function expression that toggles the visibility of <tr>s depending on some criteria,

const filterRows = function () {
...
}

39:23 warning Missing function expression name func-names

I'm running into difficulty finding a name for that function expression as the rule suggests. More often it would be pure duplication of the variable in which the function is saved.

Any ideas on how to properly redact a meaningful name that isn't a duplicate of the variable name?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions