question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

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

See original GitHub issue

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",

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Reactions:2
  • Comments:7 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
lencionicommented, Sep 8, 2016

Sounds good. I’ll prepare a PR that adds that.

1reaction
lencionicommented, Sep 8, 2016

Would it be helpful if we added a note about proposals and JavaScript, along with some links to places like the TC39 proposals page?

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to enable `eslint` to parse spread operator?
eslint failed to parse spread operator and I got this error 11:18 error Parsing error: Unexpected token .. . The code for above...
Read more >
ESLint: "Parsing error: Unexpected token" in Visual Studio Code
Unexpected token errors are caused by incompatibilities in your parser options and the code you're writing. In this case, I'm using a number...
Read more >
Troubleshooting MDX
The reason for this error is that the parser is expecting a JavaScript import or export statement. If you want the word import...
Read more >
[Solved] One esLint error I can't overcome - help - Meteor forums
The problem is on line 13 of this file. The error message is : 13:22 error Parsing error: Unexpected token .. Column 22...
Read more >
Rules - ESLint - Pluggable JavaScript Linter
Rules in ESLint are grouped by type to help you understand their purpose. ... Possible Problems. These rules relate to possible logic errors...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found