Tag: eslint
-
Gatsby + graphql-eslint: ESLint Parsing error
0 I’m following an official guide for linting graphql queries in my components. Updating eslint config like guide says causes following error in all my queries: How do I fix it? graphql eslint gatsby Share Improve this question Follow asked 2 hours ago jeron-diovisjeron-diovis 79711 gold badge88 silver badges2020 bronze badges Load 7 more related…
-
How to support ‘.gql’ files for EsLint and Prettier in VS Code
-1 In my project I have some .gql files: src/components/mycomponent/MyComponent.gql import { gql } from ‘@apollo/client’; export default gql` query MyQuery { myQuery { test } } ` In my VS Code settings file I added: // .vscode/settings.json { "eslint.validate": [ "javascript", "javascriptreact", "astro", "typescript", "typescriptreact", "gql" ], // rest of the config } In…
-
Installing graphiql breaks graphql-codegen schema validation [closed]
-2 Closed. This question needs debugging details. It is not currently accepting answers. Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question. Closed 54 mins ago. Improve this question Which packages are impacted by your issue?…