airbnb / airbnb/javascript

missing function expression name : naming / semantics

Open
#1,311 5 comments 0 reactions 0 assignees View on GitHub
question
Dominant language
JavaScript
Stars
148k
Forks
26.6k
PR merge metrics
No merged PRs in 30d

Description

Assuming a function expression that toggles the visibility of ``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?

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reviewing the style guide guidance for the ESLint func-names rule and compare it with the shown filterRows function expression. Use the naming and semantics question as the case to evaluate. Done means the project has a settled, documented recommendation for this pattern.

Written by the indexing model from the issue text.

Assessment

Tech stack
eslint, javascript
Domain
tooling
Issue type
Documentation
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.