In WebStorm, How can I disable the warning (aka. "quick-fix"):
TS80006: This may be converted to an async function.
By 'warning' I mean the function name is underlined, and I see the warning text on hover:
I would expect the setting for this warning to be under Settings / Editor / Inspections somewhere, but I can't find it when I search for "async function" or "quick fix" or "inspections".
(I assume this setting is the same or similar in WebStorm and IntelliJ)
E.g. this warning is displayed for a function like:
const f = (): Promise<string[]> => {
return util()
.then( mapFunction1 )
.then( mapFunction2 );
};
WebStorm suggest to change it to:
const f = async (): Promise<string[]> => {
const s = await util();
const s_1 = await mapFunction1( s );
return mapFunction2( s_1 );
};
But I still prefer the .then() variant, as it is better readable for me.
EDIT:
I found the "Editor / Intentions" section after this answer, but after disabling "Convert to async function" the warning still appears:
Interestingly, after that, "Convert to async function" it is not suggested anymore in the "more actions" menu, but the "suggestion" is still displayed in the code (including the hover box):



Open WebStorm and go to
SettingsIn the settings dialog, navigate to
EditorIn the search bar at the top of the settings dialog, type
This may be converted to an async functionThis rule should be present in
Intentionstab.