- versions used: sonarlint / sonarcloud
- minimal code sample to reproduce (with analysis parameter, and potential instructions to compile).

const fetchMessage = async () => {
return 'hello';
};
useEffect(() => {
const fetchTemplates = async () => {
try {
const content = await fetchMessage();
console.log(content);
} finally {
console.log('finally');
}
};
if (visible) {
fetchTemplates();
}
}, [classifications, formatMessage, visible]);
The async function returns a promise however sonar says its a non-promise