MetaMask / MetaMask/eslint-config
Enable func-names
- Dominant language
- JavaScript
- Stars
- 12
- Forks
- 21
- PR merge metrics
- No merged PRs in 30d
Description
ESLint's [`func-names`][1] allows us to enforce or disallow the use of named function expressions. This could be useful for requiring function expressions to have a name, if the name cannot be assigned automatically in an ES6 environment:
[1]:https://eslint.org/docs/rules/func-names
```js
"func-names": ["error", "as-needed", { "generators": "as-needed" }],
```
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by locating the shared ESLint configuration and review how existing rules are declared. Enable the `func-names` rule with the documented `as-needed` and generator options, then verify that the configuration loads and enforces the intended named-function behavior.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- tooling
- Issue type
- Feature
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 58/100