-
-
Notifications
You must be signed in to change notification settings - Fork 209
Closed
Description
What version of eslint are you using?
4.15.0
What version of prettier are you using?
1.10.2
What version of eslint-plugin-prettier are you using?
2.5.0
Please paste any applicable config files that you're using (e.g. .prettierrc or .eslintrc files)
Relevant rules:
{
'prettier/prettier': [
1,
{
printWidth: 120,
trailingComma: 'es5',
singleQuote: true,
semi: false,
},
],
'graphql/template-strings': [
2,
{
env: 'literal',
schemaJson: require('./graphql/schema.json'),
},
],
}
What source code are you linting?
This seems to happen for any .graphql file while using eslint-plugin-graphql (I'm on version 1.4.1).
What did you expect to happen?
It should lint correctly.
What actually happened?
In eslint-plugin-prettier 2.4.0 everything works, but since 2.5.0 I get the following error:
Syntax Error: Unexpected Name "ESLintPluginGraphQLFile" (1:1)
> 1 | ESLintPluginGraphQLFile`#import "./redacted-file-name.graphql"
| ^
Assuming this has to do with the plugin now passing the filename to prettier, and eslint-plugin-graphql causes graphql files to have a weird filename reported somehow?
josepot, lfilipowiczUniteam, sylvainbaronnet, majelbstoat, andreaswachowski and 3 more
Metadata
Metadata
Assignees
Labels
No labels