We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Before Fix: export default async function fetchFoo(
After Fix: export default async (signal: AbortSignal): Promise => {
This is horrible because that function is called in the code, so it breaks the code.
Stop removing the name.
The text was updated successfully, but these errors were encountered:
This should be fixed to
const fetchFoo = (signal: AbortSignal): Promise => { … }; export default fetchFoo;
Sorry, something went wrong.
eslint-plugin-prefer-arrow-functions
No branches or pull requests
Description
Before Fix:
export default async function fetchFoo(
After Fix:
export default async (signal: AbortSignal): Promise => {
This is horrible because that function is called in the code, so it breaks the code.
Suggested Solution
Stop removing the name.
Help Needed
The text was updated successfully, but these errors were encountered: