We can suppress inspections using special comments like this one: // noinspection JSIgnoredPromiseFromCall, but it only works for a next line of code.
I have a big test suite where I call functions and ignore the returned promises. I don't want to add // noinspection JSIgnoredPromiseFromCall comment for each call.
Is there a way to disabled some specific inspection for an entire file?
Yup. Alt+Enter on a warning, right arrow key > Suppress for file: