Skip to content

ESLint error with spread attributes : Parsing error: Unexpected token ... #1057

@Jeremboo

Description

@Jeremboo

HI,

I just having a stupid problem with the Spread Attributes ... .

I use your full config eslint (eslint-config-airbnb) who seem to implement the babel-eslint parsing.

But I have an Parsing error: Unexpected token ...

babel-eslint parsing does not seem to be used. Indeed, when I manually add the parsing into my .eslintrc, the error disappeared.

My config

eslintrc.json:

{
  "extends": "airbnb",

  "globals": {
    "app": true
  },
  "rules": {}
}

package.json:

   "eslint": "^3.4.0",
    "eslint-config-airbnb": "^10.0.1",
    "eslint-plugin-import": "^1.14.0",
    "eslint-plugin-jsx-a11y": "^2.2.1",
    "eslint-plugin-react": "^6.2.0",

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions