mirror of
https://github.com/posva/vim-vue.git
synced 2025-12-08 18:34:45 +08:00
Update README to explain how to use with typescript
This commit is contained in:
14
readme.md
14
readme.md
@@ -38,6 +38,20 @@ Currently only `eslint` is available. Please make sure `eslint` and
|
|||||||
npm i -g eslint eslint-plugin-vue
|
npm i -g eslint eslint-plugin-vue
|
||||||
```
|
```
|
||||||
|
|
||||||
|
## Typescript support
|
||||||
|
|
||||||
|
You can use typescript by adding one of the following attributes/values to
|
||||||
|
your component's script tag:
|
||||||
|
|
||||||
|
```html
|
||||||
|
<script ts></script>
|
||||||
|
<script lang="ts"></script>
|
||||||
|
<script lang="typescript"></script>
|
||||||
|
```
|
||||||
|
|
||||||
|
Choose one that works with your module bundler
|
||||||
|
|
||||||
|
|
||||||
## Contributing
|
## Contributing
|
||||||
|
|
||||||
If your language is not getting highlighted open an issue or a PR with the fix.
|
If your language is not getting highlighted open an issue or a PR with the fix.
|
||||||
|
|||||||
Reference in New Issue
Block a user