People who are looking how to suppress it when using ESLint. You can ingnore it by writing the following comment just above the line no-unused-expressions
// eslint-disable-next-line no-unused-expressions
You can also suppress the warning for the entire file by placing the following comment at the very top of the file
/* eslint-disable no-unused-expressions */
https://stackoverflow.com/questions/9534031/expected-an-assignment-or-function-call-and-instead-saw-an-expression