Getting an Error with "prefer-arrow-callback"
See original GitHub issueError: /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:
- Created 7 years ago
- Comments:18
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@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 😃launcher is an internally written unit testing framework. I’ve actually realized that the dependency its pulling for eslint is 1.10.3
So looks like my problem.