Skip to content

Commit

Permalink
embed
Browse files Browse the repository at this point in the history
  • Loading branch information
JoviDeCroock committed Dec 1, 2023
1 parent 1c70daf commit 84553d4
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion website/src/pages/docs/guides/react-vue.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -507,7 +507,15 @@ after installing the package (`npm i -D @0no-co/graphqlsp`):
}
```

Last but not least you need to ensure that when you're using `VSCode` that the [workspace version of TS is used](https://code.visualstudio.com/docs/typescript/typescript-compiling#_using-the-workspace-version-of-typescript)
Last but not least you need to ensure that when you're using `VSCode` that the workspace version of TS is used, the following
config will make a prompt appear to switch it when visiting a TS file

```json filename=".vscode/settings.json"
{
"typescript.tsdk": "node_modules/typescript/lib",
"typescript.enablePromptUseWorkspaceTsdk": true
}
```

Also, make sure to follow GraphQL best practices by using [`graphql-eslint`](https://github.com/B2o5T/graphql-eslint) and the [ESLint VSCode extension](https://marketplace.visualstudio.com/items?itemName=dbaeumer.vscode-eslint) to visualize errors and warnings inlined in your code correctly.

Expand Down

0 comments on commit 84553d4

Please sign in to comment.