Expected an assignment or function call and instead saw an expression

    科技2022-08-09  108

    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

    Processed: 0.010, SQL: 8