I have a function (foo) in my project which returns a promise but often it is not needed to wait for the promise to resolve so there is never a .then() handler attached. Intellij IDEA being helpful as it is always marks it with a warning. This can be removed by adding
// JSIgnoredPromiseFromCall
to the top of the file. But this would make it to ignore all ignored promises which is not what we want. Adding the comment for each statement also not ideal since the function is called often so it would be just polluting source code unnecessary.
Is there a way of specifying which exactly function to ignore with file level supperss comment? E.g.
// noinspection JSIgnoredPromiseFromCall[foo]