Expected an assignment or function call and instead saw an expression
报错:
Expected an assignment or function call and instead saw an expression
解决方案:
.eslintrc.js文件的rules添加 'no-unused-expressions':'off'
module.exports = {
rules: {
'no-unused-expressions':'off'
}
}