code-file example not working #1104
-
Hi, I have followed the example for the code-file for my *.js files and I keep getting these 2 errors: 1:0 error Parsing error: [graphql-eslint] Syntax Error: Unexpected Name "const" In my *.js files I have the following:
In my .eslintrc.json file I have the following config
I don't understand why it is always stopping at the Am I missing something? Sorry if the answer is obvious. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 13 replies
-
I figured my issue, sorry about that. This is what I ended up with.
|
Beta Was this translation helpful? Give feedback.
-
Your configuration is invalid, follow this example https://github.com/B2o5T/graphql-eslint/blob/master/examples/monorepo/.eslintrc.cjs to found what’s wrong in your configuration |
Beta Was this translation helpful? Give feedback.
Your configuration is invalid, follow this example https://github.com/B2o5T/graphql-eslint/blob/master/examples/monorepo/.eslintrc.cjs to found what’s wrong in your configuration