Eslint with node.js - Parsing error: Assigning to rvalue

Eslint with node.js - Parsing error: Assigning to rvalue

我第一次尝试使用 JS linter,并选择了 eslint 来测试一些用 NodeJS 编写的 AWS Lambda 函数。我立即收到一个让我难过的错误。

module.exports.replyGet = ( event, context, callback ) => {

产生以下错误

14:28  error  Parsing error: Assigning to rvalue

我的.eslintrc.js内容如下:

module.exports = {
  "rules": {
    "no-console":0
  },
  "extends": "eslint:recommended"
};

任何人都可以建议新手如何最好地修复错误吗?

非常感谢

将此添加到您的 eslint 配置文件

"env": {
    "es6": true,
    "node": true
 }