Skip to content

Commit e8a09e9

Browse files
ylc395FloEdelmann
andauthored
doc: add example for Vue class component (#2561)
Co-authored-by: Flo Edelmann <[email protected]>
1 parent 4c38983 commit e8a09e9

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

docs/user-guide/index.md

+10
Original file line numberDiff line numberDiff line change
@@ -221,6 +221,16 @@ Vue.component('AsyncComponent', (resolve, reject) => {
221221
})
222222
```
223223

224+
You can do this for [Vue class component](https://class-component.vuejs.org/) too:
225+
226+
```ts
227+
// @vue/component
228+
@Component({
229+
components: { Foo }
230+
})
231+
export default class Bar extends Vue {}
232+
```
233+
224234
### Disabling rules via `<!-- eslint-disable -->`
225235

226236
You can use `<!-- eslint-disable -->`-like HTML comments in the `<template>` and in the block level of `.vue` files to disable a certain rule temporarily.

0 commit comments

Comments
 (0)