ESLint | error | undefined | Parsing error: Unexpected token =
See original GitHub issueWorking through some react relay tasks and I came across this error reported by eslint. Not quite sure what it means or how to configure .eslintrc
to allow this.
import Relay from 'react-relay';
export default class extends Relay.Route {
static queries = { // ESLint | error | undefined | Parsing error: Unexpected token =
viewer: () => Relay.QL`
query {
viewer
}
`,
};
static routeName = 'AppHomeRoute';
}
Issue Analytics
- State:
- Created 8 years ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
ESLint Parsing error: Unexpected token - Stack Overflow
Unexpected token errors in ESLint parsing occur due to incompatibility between your development environment and ESLint's current parsing ...
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 >Parsing error: Unexpected token = (fatal) #11259 - GitHub
When writing components for a react project I am working on I have noticed a strange issue occuring with regards to linting.
Read more >[ESLint] Parsing error: unexpected token - DEV Community
What is this article about? This is a solution when I saw these errors. Warning: React version not specified in eslint-plugin-react settings. ...
Read more >How To Fix - "Parsing error: Unexpected Token" in React.js or ...
Such “Unexpected token” signify a common behavioural problem – somewhere in your code a specific construct was supplied, but the system expected something ......
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
If you are going to use class properties you will have to use https://github.com/babel/babel-eslint
@jeromecovington here is the answer: http://stackoverflow.com/questions/34125141/mysterious-eslint-parsing-error/34125219