Skip to content

Commit

Permalink
docs: update vue-tsc vue 2 support section
Browse files Browse the repository at this point in the history
  • Loading branch information
jhoermann authored and fi3ework committed Jul 24, 2023
1 parent ab70e33 commit 7303538
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/checkers/vue-tsc.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ You can use vue-tsc checker for your Vue3 project. If you're still using Vue2, c
```

::: tip
The `vue-tsc` version **must** >= `0.33.9`. `vue-tsc` has released `1.0.0` version, it's recommended to try it out.
The `vue-tsc` version **must** be >= `0.33.9`. `vue-tsc` has released a `1.0.0` version, it's recommended to try it out.
:::

2. Add `vueTsc` field to plugin config.
Expand All @@ -31,4 +31,4 @@ Advanced object configuration table of `options.vueTsc`
| root | `string` | [Vite config](https://vitejs.dev/config/#root) `root` | Root path to find tsconfig file |
| tsconfigPath | `string` | `"tsconfig.json"` | Relative tsconfig path to `root` |

3. **(optional for Vue2 project only)** The type check is powered by `vue-tsc` so it supports Vue2 according to the [documentation](https://github.com/johnsoncodehk/volar#using), you need to install `@vue/runtime-dom` by yourself.
3. **(optional for Vue2 project only)** The type check is powered by `vue-tsc` so it supports Vue2. According to the [documentation](https://github.com/vuejs/language-tools/blob/master/packages/vscode-vue/README.md#usage), you need to install `@vue/runtime-dom` for Vue version <= `2.6.14`.

0 comments on commit 7303538

Please sign in to comment.