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.

Getting an Error with "prefer-arrow-callback"

See original GitHub issue

Error: /Users/framerate/code/project/server/node_modules/eslint-config-airbnb-base/rules/es6.js: Configuration for rule "prefer-arrow-callback" is invalid: Value "2,[object Object]" has more items than allowed.

Are you guys seeing this, as well?

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:18

github_iconTop GitHub Comments

1reaction
rexcommented, Aug 12, 2016

@ljharb Yeah… You’re right. I just looked at how long it’s been, my team and I are way behind in terms of ESLint version. 1.x really is that far behind. I will hopefully be able to use this as a stimulus in the direction of upgrading. We rely extremely heavily on the work that you Airbnb guys do on this config, like so many others, and I appreciate it 😃

1reaction
polokacommented, Jun 9, 2016

launcher is an internally written unit testing framework. I’ve actually realized that the dependency its pulling for eslint is 1.10.3

├── eslint@2.11.1
└─┬ launcher@0.14.1
  └── eslint@1.10.3

So looks like my problem.

Read more comments on GitHub >

github_iconTop Results From Across the Web

prefer-arrow-callback - ESLint - Pluggable JavaScript Linter
This rule locates function expressions used as callbacks or function arguments. An error will be produced for any that could be replaced by...
Read more >
ESLint prefer-arrow-callback on array.map - Stack Overflow
That ESLint rule occurs because you have an anonymous function as a callback, so it's suggesting that you use an arrow function instead....
Read more >
eslint-browser/prefer-arrow-callback.md at master - GitHub
A fully pluggable tool for identifying and reporting on patterns in JavaScript. - eslint-browser/prefer-arrow-callback.md at master ...
Read more >
prefer-arrow-callback - ESLint Config
This rule locates function expressions used as callbacks or function arguments. An error will be produced for any that could be replaced by...
Read more >
eslint-plugin-prefer-arrow-functions - npm
Convert functions to arrow functions. Latest version: 3.1.4, last published: a year ago. Start using eslint-plugin-prefer-arrow-functions in ...
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