export as - Parsing error: Unexpected token as
See original GitHub issueWhat version of ESLint are you using? 2.8.0
What parser (default, Babel-ESLint, etc.) are you using? “babel-eslint”: “^6.0.2”
Please show your full configuration:
{
"extends": "airbnb",
"env" : {
"jasmine" : true
},
parserOptions: {
"ecmaVersion": 6,
"ecmaFeatures": {
"jsx": true,
"modules": true,
"experimentalObjectRestSpread": true
},
},
"rules" : {
"object-curly-spacing" : 0,
"comma-dangle" : 0,
"func-names" : 0,
"max-len": ["error", 150, 2],
"space-before-function-paren" : 0,
"react/jsx-indent-props" : 0,
"react/jsx-closing-bracket-location" : 0,
"indent" : 0,
"quotes" : 0,
"padded-blocks" : 0,
'no-param-reassign': [2, { 'props': false }]
}
}
What did you do? Please include the actual source code causing the issue.
index.js:
export * as renderers from './renderers';
What did you expect to happen? valid ES6 to pass
What actually happened? Please include the actual, raw output from ESLint.
/src/index.js
1:10 error Parsing error: Unexpected token as
Issue Analytics
- State:
- Created 7 years ago
- Comments:5 (4 by maintainers)
Top Results From Across the Web
es6 export throws Parsing error: Unexpected token
1 Answer 1 · You get an error because you have invalid export syntax. Try export class App instead. · When you write...
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 >[ESLint] Parsing error: unexpected token - DEV Community
What is this article about? This is a solution when I saw these errors. Parsing error: unexpected token =>.
Read more >LWC1503: Parsing error: Unexpected token
LWC1503: Parsing error: Unexpected token ... Thanks, Vijay. ... Hi Vijay, Here recordId and objectApiName is a variable and you are using it...
Read more >Component props error - Parsing error: Unexpected token
Component props error - Parsing error: Unexpected token. Newbie here, I have simple code below, basically adding type props to my component ...
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
That’s not ES6.
thanks all! my bad. Not an experimental es6 feature then.