eslint-plugin-graphql
eslint-plugin-graphql copied to clipboard
How to exclude this rule -'Invalid interpolation - not a valid fragment or variable.'
trafficstars
In our query files, we use ${abc} inside a lot in Javascript files. This seems a deal breaker to use this library. How can I exclude this rule out?
code:
client.query(gql`
{
allFilms {
films {
${filmInfo}
}
}
}
`).then(result => {
console.log(result.allFilms.films);
});
, errors: [{ message: 'Invalid interpolation - not a valid fragment or variable.', type: 'Identifier', line: 6, column: 21 }]
This rule is not compatible with fraql.