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.

functions with arrow function body are ignored

See original GitHub issue

Hi,

we 're using ESLint ‘arrow-body-style’ in our JSX-files an the functions are completely ignored. if i remove the arrow it works nice…

`//bad - doe not work in esdoc foo = () => { return 0; };

//good foo () { return 0; }; `

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Reactions:1
  • Comments:7 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
h13i32marucommented, Dec 30, 2016

Please check latest ESDoc version.

I re-open this issue if is problem.

0reactions
nirajbhutadacommented, Mar 14, 2019

ESDoc v0.5.0 supports arrow function exporting. Please check it.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Expected result - GitHub
Recommended max-func-body-length rule ignores functions named /. ... "Max arrow function body length exceeded" error should be raised at the ...
Read more >
arrow-body-style - ESLint - Pluggable JavaScript Linter
Arrow functions have two syntactic forms for their function bodies. They may be defined with a block body (denoted by curly braces) ()...
Read more >
Why doesn't my arrow function return a value? - Stack Overflow
When you use the function body version of an arrow function (with {} ), there is no implied return . You have to...
Read more >
JavaScript Arrow Functions: How, Why, When (and ... - ZenDev
Arrow functions have a single overarching structure, and then an number of ways they can be simplified in special cases. ... A list...
Read more >
Arrow function expressions - JavaScript - MDN Web Docs
Arrow functions can have either a concise body or the usual block body. In a concise body, only a single expression is specified,...
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