How can I disable lint rules on specific lines or for specific rules?

To handle a returned Promise, you either use await , which waits for the query to finish before proceeding; or you handle the returned Promise in the .then() function. It is incorrect to use both await and .then(). The articles I linked to explain in detail.