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?
What version of
eslintare you using?4.15.0
What version of
prettierare you using?1.10.2
What version of
eslint-plugin-prettierare you using?2.5.0
Please paste any applicable config files that you're using (e.g.
.prettierrcor.eslintrcfiles)Relevant rules:
What source code are you linting?
This seems to happen for any
.graphqlfile while usingeslint-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-prettier2.4.0everything works, but since2.5.0I get the following error: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?