eslint-plugin-graphql icon indicating copy to clipboard operation
eslint-plugin-graphql copied to clipboard

How to exclude this rule -'Invalid interpolation - not a valid fragment or variable.'

Open MichaelSu1983 opened this issue 7 years ago • 2 comments
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 }]

MichaelSu1983 avatar Jun 15 '18 02:06 MichaelSu1983

This rule is not compatible with fraql.

gregberge avatar Jun 15 '18 23:06 gregberge

This rule is not compatible with fraql.

Hi there! How about apollo?

vladcast avatar Nov 21 '19 14:11 vladcast