This repository has been archived by the owner on Aug 31, 2023. It is now read-only.
prefer-arrow-callback
, eslint/prefer-arrow-callback
#4416
jpike88
started this conversation in
Suggestions
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
https://eslint.org/docs/latest/rules/prefer-arrow-callback
It's more verbose to write
function (){}
when it's not needed (like when it's in a callback or used as an argument), nicer to have arrow function syntax.Of course when referencing
this
or declaring the function standalone, it should be allowed.Beta Was this translation helpful? Give feedback.
All reactions