ESLint error with spread attributes : Parsing error: Unexpected token ...
See original GitHub issueHI,
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:
- Created 7 years ago
- Reactions:2
- Comments:7 (2 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Sounds good. I’ll prepare a PR that adds that.
Would it be helpful if we added a note about proposals and JavaScript, along with some links to places like the TC39 proposals page?