You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -69,23 +69,22 @@ The Vue browser devtools extension allows you to explore a Vue app's component t
69
69
70
70
## TypeScript
71
71
72
-
// TODO links and recommendations
72
+
Main article: [Using Vue with TypeScript](/guide/scaling-up/typescript).
73
73
74
-
-`vue-tsc`: Type check Vue SFCs
75
-
-`vue-dts-gen`: Generate type declarations from Vue SFCs
74
+
-[Volar](https://github.com/johnsoncodehk/volar) provides type checking for SFCs using `<script lang="ts">` blocks, including template expressions and cross-component props validation.
76
75
77
-
See also: [Using Vue with TypeScript](/guide/scaling-up/typescript).
76
+
- Use [`vue-tsc`](https://github.com/johnsoncodehk/volar/tree/master/packages/vue-tsc) for performing the same type checking from the command line, or for generating `d.ts` files for SFCs.
78
77
79
78
## Testing
80
79
80
+
Main article: [Testing Guide](/guide/scaling-up/testing).
81
+
81
82
- If using Vite, we recommend [Cypress](https://www.cypress.io/) as the test runner for both unit and e2e tests. Unit tests for Vue SFCs can be done with the [Cypress Component Test Runner](https://www.cypress.io/blog/2021/04/06/introducing-the-cypress-component-test-runner/).
82
83
83
84
- Vue CLI comes with [Jest](https://jestjs.io/) and [Mocha](https://mochajs.org/) integrations.
84
85
85
86
- If you are manually configuring Jest to work with Vue SFCs, check out [vue-jest](https://github.com/vuejs/vue-jest) which is the official Jest transform for Vue SFCs.
86
87
87
-
See also: [Testing Guide](/guide/scaling-up/testing).
88
-
89
88
## Linting
90
89
91
90
The Vue team maintains [eslint-plugin-vue](https://github.com/vuejs/eslint-plugin-vue), an [ESLint](https://eslint.org/) plugin that supports SFC-specific linting rules.
@@ -106,10 +105,6 @@ Users previously using Vue CLI may be used to having linters configured via webp
Custom blocks are compiled into imports to the same Vue file with different request queries. It is up to the underlying build tool to handle these import requests.
@@ -146,3 +141,5 @@ The official loader that provides Vue SFC support in webpack. If you are using V
146
141
-[Vue + Vite on Repl.it](https://replit.com/@templates/VueJS-with-Vite)
147
142
-[Vue on CodeSandbox](https://codesandbox.io/s/vue-3)
148
143
-[Vue on Codepen](https://codepen.io/pen/editor/vue)
0 commit comments