question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Warning "Unexpected unnamed function func-names" under '*new' ESLint rule

See original GitHub issue

my eslint version is 4.4.1, it would give a warning like this: func express

when defining functions in such a way: const funct = function () { .... }

http://eslint.org/docs/rules/func-names

Issue Analytics

  • State:open
  • Created 6 years ago
  • Reactions:1
  • Comments:5

github_iconTop GitHub Comments

13reactions
khamiltonukcommented, Mar 19, 2018

I don’t think this is a problem with ESLint You might want to change your function to const funct = () => { .... } A bit late but hopefully it helps someone else

2reactions
tewang1commented, May 3, 2018

i come across this question too

Read more comments on GitHub >

github_iconTop Results From Across the Web

Warning Unexpected unnamed function func-names under ...
This is, as pointed out by Constantin, the ESLint rule func-names. ... this rule, you can either use names for your functions, like...
Read more >
func-names - ESLint - Pluggable JavaScript Linter
A pluggable and configurable linter tool for identifying and reporting on patterns in JavaScript. Maintain your code quality with ease.
Read more >
JS closure results in "Unexpected unnamed function" warning ...
It seems the closure/wrapper required in the JS coding standards handbook page (and found ... warning Unexpected unnamed function func-names.
Read more >
Eslint Func Names Unexpected Unnamed Function
The following will complaint of func-names: https://eslint.org/docs/rules/func-names using airbnb config. const util = {} util.
Read more >
ESLint equivalents in Elm - Elmcraft
Comparing ESLint functionality and the equivalents in the Elm ... no-unexpected-multiline ... Anonymous functions can't have names.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found