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'
  }
}
posted @ 2022-02-13 17:11  清和时光  阅读(2073)  评论(0编辑  收藏  举报