StackOverflow - javascript, node.js, eslint, arrow-functions, airbnb-js-styleguide
Eslint - Unexpected block statement surrounding arrow body
The reason you are having this error is, that airbnb's eslint config prefers implicit return with arrow function, you can fix it like this: const getAccountInfo = e => new Promise((resolve, reject) => ...)
Was this helpful?
Related Articles
Have a different question?
Can't find the answer you're looking for? Submit your own question to our community.
🛎️ Get Weekly OTA Fixes
New answers, vendor issues, and updates — straight to your inbox.